13 lines
487 B
Lua
13 lines
487 B
Lua
require("luasnip.loaders.from_snipmate").load({ path = { "$HOME/.config/nvim/snippets/" } })
|
|
|
|
local ls = require("luasnip")
|
|
vim.keymap.set({"i"}, "<C-K>", function() ls.expand() end, {silent = true})
|
|
vim.keymap.set({"i", "s"}, "<C-D>", function() ls.jump( 1) end, {silent = true})
|
|
vim.keymap.set({"i", "s"}, "<C-C>", function() ls.jump(-1) end, {silent = true})
|
|
|
|
vim.keymap.set({"i", "s"}, "<C-E>", function()
|
|
if ls.choice_active() then
|
|
ls.change_choice(1)
|
|
end
|
|
end, {silent = true})
|