24 lines
684 B
Lua
24 lines
684 B
Lua
---@type LazySpec
|
|
return {
|
|
{
|
|
"astronvim/astrocore",
|
|
opts = {
|
|
commands = {
|
|
LuaSnipExitOnModeChange = {
|
|
function(evt)
|
|
local ok, luasnip = pcall(require, "luasnip")
|
|
if
|
|
ok
|
|
and luasnip.session
|
|
and luasnip.session.current_nodes[evt.buf]
|
|
and not luasnip.session.jump_active
|
|
then
|
|
luasnip.unlink_current()
|
|
end
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|