Nvim: fix luasnip keymappings
This commit is contained in:
parent
5d9708d535
commit
aef2e0a750
2 changed files with 6 additions and 25 deletions
|
@ -1,23 +1,4 @@
|
|||
return function()
|
||||
local luasnip = require("luasnip")
|
||||
local wk = require("which-key")
|
||||
|
||||
-- load friendly-snippets to luasnip
|
||||
require("luasnip/loaders/from_vscode").lazy_load()
|
||||
|
||||
-- Register snippet navigation keybindings
|
||||
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"})
|
||||
-- load friendly-snippets to luasnip
|
||||
require("luasnip/loaders/from_vscode").lazy_load()
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue