Files
dotfiles/nvim/lua/plugins/cmp.lua
Shaun Setlock 8cb2e48406
All checks were successful
Build and Push Docker Image / build-push (push) Successful in 11s
New autocomplete toggle config.
2025-07-02 09:35:54 -04:00

23 lines
432 B
Lua

return {
"saghen/blink.cmp",
-- Make blink.cmp toogleable
opts = function(_, opts)
vim.b.completion = false
Snacks.toggle({
name = "Completion",
get = function()
return vim.b.completion
end,
set = function(state)
vim.b.completion = state
end,
}):map("<leader>uk")
opts.enabled = function()
return vim.b.completion ~= false
end
return opts
end,
}