Make cpp for snippet dynamic

This commit is contained in:
2024-06-01 10:30:52 +01:00
parent 0410dfc23d
commit 59d3ea0978
5 changed files with 58 additions and 15 deletions

View File

@@ -138,8 +138,8 @@ return {
}),
sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'nvim_lsp' },
{ name = 'buffer' },
{ name = 'path' },
{ name = 'git' },

View File

@@ -22,5 +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 })
end
}