reset to new lazy and nvim
This commit is contained in:
@ -22,39 +22,4 @@ return {
|
||||
labels = "hoeadstnbufgmlzxcv",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
init = function()
|
||||
vim.g.cmp_disabled = false
|
||||
end,
|
||||
opts = function(_, opts)
|
||||
opts.enabled = function()
|
||||
-- local context = require("cmp.config.context")
|
||||
if vim.g.cmp_disabled == true then
|
||||
return false
|
||||
end
|
||||
-- some other conditions (like not in commments) can go here
|
||||
return not disabled
|
||||
end
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>ua",
|
||||
function()
|
||||
vim.g.cmp_disabled = not vim.g.cmp_disabled
|
||||
local msg = ""
|
||||
if vim.g.cmp_disabled == true then
|
||||
msg = "Autocompletion (cmp) disabled"
|
||||
else
|
||||
msg = "Autocompletion (cmp) enabled"
|
||||
end
|
||||
vim.notify(msg, vim.log.levels.INFO)
|
||||
end,
|
||||
noremap = true,
|
||||
silent = true,
|
||||
desc = "toggle autocompletion",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user