fix C-l keybind

This commit is contained in:
2025-12-10 09:38:27 +02:00
parent 405ec5da4f
commit cd7f789302
2 changed files with 6 additions and 6 deletions

View File

@@ -43,9 +43,3 @@ vim.keymap.set("v", "<leader>x", ":lua<CR>")
vim.keymap.set("n", "<C-M-j>", "<cmd>cnext<CR>")
vim.keymap.set("n", "<C-M-k>", "<cmd>cprev<CR>")
vim.keymap.set({ 'i', 's' }, '<C-l>', function()
if ls.expand_or_jumpable() then
ls.expand_or_jump()
end
end, { desc = 'Snippet next argument', silent = true })

View File

@@ -4,6 +4,12 @@ local i = ls.insert_node
local f = ls.function_node
local fmt = require('luasnip.extras.fmt').fmt
vim.keymap.set({ 'i', 's' }, '<C-l>', function()
if ls.expand_or_jumpable() then
ls.expand_or_jump()
end
end, { desc = 'Snippet next argument', silent = true })
local function com_string(_, snip, to_multiply)
local comment_string = vim.bo.commentstring
local repeats = snip.captures[1]