Compare commits
3 Commits
a8c313b9cd
...
0471dd67c4
Author | SHA1 | Date | |
---|---|---|---|
0471dd67c4 | |||
94288ce806 | |||
516d3cbce7 |
@ -17,20 +17,20 @@ return {
|
|||||||
luasnip.expand_or_jump()
|
luasnip.expand_or_jump()
|
||||||
end
|
end
|
||||||
end, { silent = true })
|
end, { silent = true })
|
||||||
vim.keymap.set({ 'i', 's' }, '<C-K>', function()
|
vim.keymap.set({ 'i', 's' }, '<C-k>', function()
|
||||||
if luasnip.jumpable(-1) then
|
if luasnip.jumpable(-1) then
|
||||||
luasnip.jump(-1)
|
luasnip.jump(-1)
|
||||||
end
|
end
|
||||||
end, { silent = true })
|
end, { silent = true })
|
||||||
-- vim.keymap.set('s', '<M-l>', function()
|
vim.keymap.set({ "i", "s" }, "<C-n>", function()
|
||||||
-- if luasnip.choice_active() then
|
if luasnip.choice_active() then
|
||||||
-- luasnip.change_choice(1)
|
luasnip.change_choice(1)
|
||||||
-- end
|
end
|
||||||
-- end, { silent = true })
|
end, { silent = true })
|
||||||
-- vim.keymap.set('s', '<M-h>', function()
|
vim.keymap.set({ "i", "s" }, "<C-p>", function()
|
||||||
-- if luasnip.choice_active() then
|
if luasnip.choice_active() then
|
||||||
-- luasnip.change_choice(-1)
|
luasnip.change_choice(-1)
|
||||||
-- end
|
end
|
||||||
-- end, { silent = true })
|
end, { silent = true })
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,11 @@ local snippets = {
|
|||||||
end, key('name')),
|
end, key('name')),
|
||||||
text({ '', '#define ' }),
|
text({ '', '#define ' }),
|
||||||
insert(1, getIncludeGuardName(), { key = 'name' }),
|
insert(1, getIncludeGuardName(), { key = 'name' }),
|
||||||
|
-- FIXME: dynamic(1, function(_, _)
|
||||||
|
-- return snip({}, {
|
||||||
|
-- insert(1, getIncludeGuardName())
|
||||||
|
-- })
|
||||||
|
-- end, { key = "name" }),
|
||||||
text({ '', '', '', }),
|
text({ '', '', '', }),
|
||||||
insert(0, ''),
|
insert(0, ''),
|
||||||
text({ '', '', '#endif // ' }),
|
text({ '', '', '#endif // ' }),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user