New autocomplete toggle config.
All checks were successful
Build and Push Docker Image / build-push (push) Successful in 11s

This commit is contained in:
Shaun Setlock
2025-07-02 09:35:54 -04:00
parent 2fc3dc6ecf
commit 8cb2e48406

22
nvim/lua/plugins/cmp.lua Normal file
View File

@@ -0,0 +1,22 @@
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,
}