Make LuaSnip mapping case consistent

This commit is contained in:
Kenneth Benzie 2025-07-23 12:17:05 +01:00
parent 516d3cbce7
commit 94288ce806

View File

@ -17,17 +17,17 @@ return {
luasnip.expand_or_jump() luasnip.expand_or_jump()
end end
end, { silent = true }) end, { silent = true })
vim.keymap.set({ 'i', 's' }, '<C-K>', function() vim.keymap.set({ 'i', 's' }, '<C-k>', function()
if luasnip.jumpable(-1) then if luasnip.jumpable(-1) then
luasnip.jump(-1) luasnip.jump(-1)
end end
end, { silent = true }) end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-N>", function() vim.keymap.set({ "i", "s" }, "<C-n>", function()
if luasnip.choice_active() then if luasnip.choice_active() then
luasnip.change_choice(1) luasnip.change_choice(1)
end end
end, { silent = true }) end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-P>", function() vim.keymap.set({ "i", "s" }, "<C-p>", function()
if luasnip.choice_active() then if luasnip.choice_active() then
luasnip.change_choice(-1) luasnip.change_choice(-1)
end end