Neovim: fix luasnip mappings

This commit is contained in:
Marko Korhonen 2022-10-24 15:40:53 +03:00
parent bab68a1209
commit d6e5b68741
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -6,10 +6,10 @@ return function()
require('luasnip/loaders/from_vscode').lazy_load()
-- Register snippet navigation keybindings
--local snippet_mappings = {
-- ['<c-j>'] = {luasnip.jump(1)},
-- ['<c-k>'] = {luasnip.jump(-1)}
--}
--wk.register(snippet_mappings, {mode = "i"})
--wk.register(snippet_mappings, {mode = "s"})
local snippet_mappings = {
['<c-j>'] = {function() luasnip.jump(1) end},
['<c-k>'] = {function() luasnip.jump(-1) end}
}
wk.register(snippet_mappings, {mode = "i"})
wk.register(snippet_mappings, {mode = "s"})
end