fix luasnip jumping back to snippet with tab after snippet exit
This commit is contained in:
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user