fix luasnip jumping back to snippet with tab after snippet exit

This commit is contained in:
2025-11-18 19:54:43 +05:00
parent 116ab17242
commit 3a832eec36
4 changed files with 19 additions and 5 deletions

View File

@ -1,11 +1,18 @@
return {
{
"L3MON4D3/LuaSnip",
event = "VeryLazy",
config = true,
lazy = false,
opts = {
region_check_events = "CursorHold,InsertLeave,InsertEnter",
-- those are for removing deleted snippets, also a common problem
delete_check_events = "TextChanged,InsertEnter",
},
config = function(_, opts)
local luasnip = require("luasnip")
luasnip.setup(opts)
end,
dependencies = {
"rafamadriz/friendly-snippets",
-- "dsznajder/vscode-es7-javascript-react-snippets",
}
}
}