From 516d3cbce7d45e94363b8a807a92ae5f213a992e Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 23 Jul 2025 12:16:45 +0100 Subject: [PATCH] Add LuaSnip choice mappings --- lua/plugins/snippets.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lua/plugins/snippets.lua b/lua/plugins/snippets.lua index 793de87..870d62b 100644 --- a/lua/plugins/snippets.lua +++ b/lua/plugins/snippets.lua @@ -22,15 +22,15 @@ return { luasnip.jump(-1) end end, { silent = true }) - -- vim.keymap.set('s', '', function() - -- if luasnip.choice_active() then - -- luasnip.change_choice(1) - -- end - -- end, { silent = true }) - -- vim.keymap.set('s', '', function() - -- if luasnip.choice_active() then - -- luasnip.change_choice(-1) - -- end - -- end, { silent = true }) + vim.keymap.set({ "i", "s" }, "", function() + if luasnip.choice_active() then + luasnip.change_choice(1) + end + end, { silent = true }) + vim.keymap.set({ "i", "s" }, "", function() + if luasnip.choice_active() then + luasnip.change_choice(-1) + end + end, { silent = true }) end }