Make cpp for snippet dynamic
This commit is contained in:
@@ -138,8 +138,8 @@ return {
|
||||
}),
|
||||
|
||||
sources = {
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'buffer' },
|
||||
{ name = 'path' },
|
||||
{ name = 'git' },
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user