FINALLY have l-uk autocomplete toggle

This commit is contained in:
2025-07-03 22:43:18 -07:00
parent 143b9ebc1c
commit a0b48710fc

22
lua/plugins/actoggle.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,
}