Make cpp for snippet dynamic
This commit is contained in:
@@ -6,7 +6,7 @@ local snip = luasnip.snippet
|
||||
local text = luasnip.text_node
|
||||
-- local isn = luasnip.indent_snippet_node
|
||||
-- local t = luasnip.text_node
|
||||
local insert = luasnip.insert_node
|
||||
local ins = luasnip.insert_node
|
||||
local func = luasnip.function_node
|
||||
-- local c = luasnip.choice_node
|
||||
-- local d = luasnip.dynamic_node
|
||||
@@ -67,7 +67,7 @@ for _, name in ipairs({ 'fixme', 'todo', 'hack', 'warn', 'note' }) do
|
||||
snip(name, {
|
||||
func(comment_prefix),
|
||||
text(string.upper(name) .. ': '),
|
||||
insert(0),
|
||||
ins(0),
|
||||
func(comment_suffix),
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user