feat: implement snippet closure on exit from insert mode

This commit is contained in:
2024-12-11 14:44:33 -05:00
parent d958a521e4
commit 1ff3ef3e1b
+6
View File
@@ -39,3 +39,9 @@ end
-- Allow directional motions to wrap to next line
-- vim.cmd('set whichwrap+=h,l')
-- Stop snippet when leaving insert mode
vim.keymap.set({ 'i', 's' }, '<Esc>', function()
vim.snippet.stop()
return '<Esc>'
end, { expr = true, desc = 'Close snippet session' })