add autopairs and create bindings for jumping through params in snippets

This commit is contained in:
2024-10-01 21:30:57 +02:00
parent b8e245dede
commit 7ab1449943
4 changed files with 28 additions and 7 deletions

View File

@@ -7,6 +7,9 @@ end
local luasnip = require("luasnip")
local cmp = require("cmp")
vim.keymap.set({ "i", "s" }, "<C-L>", function() luasnip.jump(1) end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-H>", function() luasnip.jump(-1) end, { silent = true })
cmp.setup({
snippet = {
-- REQUIRED - you must specify a snippet engine
@@ -76,4 +79,5 @@ cmp.setup({
{ name = 'buffer' }, -- For buffer word completion
{ name = 'path' }, -- For path completion
})
})