reset to new lazy and nvim

This commit is contained in:
2025-05-08 22:34:16 -07:00
parent 207cbdbad0
commit afa8d1fd33
5 changed files with 10 additions and 186 deletions

View File

@ -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",
},
},
},
}