add snacks.toggle functionality for blink

This commit is contained in:
2025-02-08 20:20:57 -05:00
parent abce81eef4
commit 7a1114d434
+23
View File
@@ -52,6 +52,29 @@ M.autosave = function()
:map('<leader>uW')
end
M.blink = function()
require('snacks.toggle')
.new({
name = 'Completion',
which_key = true,
get = function()
if vim.g.cmp_auto_show == false then
return false
end
return true
end,
set = function(state)
if state then
vim.g.cmp_auto_show = true
else
vim.g.cmp_auto_show = false
end
end,
})
:map('<leader>uB')
end
M.capsword = {
{
'<C-s>',