Add LuaSnip choice mappings

This commit is contained in:
Kenneth Benzie 2025-07-23 12:16:45 +01:00
parent a8c313b9cd
commit 516d3cbce7

View File

@ -22,15 +22,15 @@ return {
luasnip.jump(-1)
end
end, { silent = true })
-- vim.keymap.set('s', '<M-l>', function()
-- if luasnip.choice_active() then
-- luasnip.change_choice(1)
-- end
-- end, { silent = true })
-- vim.keymap.set('s', '<M-h>', function()
-- if luasnip.choice_active() then
-- luasnip.change_choice(-1)
-- end
-- end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-N>", function()
if luasnip.choice_active() then
luasnip.change_choice(1)
end
end, { silent = true })
vim.keymap.set({ "i", "s" }, "<C-P>", function()
if luasnip.choice_active() then
luasnip.change_choice(-1)
end
end, { silent = true })
end
}