feat: Add lua snippet
This commit is contained in:
parent
b7dfb32623
commit
135091f457
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
local ls = require('luasnip')
|
local ls = require('luasnip')
|
||||||
local s = ls.snippet
|
local s = ls.snippet
|
||||||
local f = ls.function_node
|
local f = ls.function_node
|
||||||
|
local t = ls.text_node
|
||||||
local fill = require('snippets.helpers').fill
|
local fill = require('snippets.helpers').fill
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -8,4 +9,8 @@ return {
|
||||||
{ trig = 'dc', desc = 'divider comment' },
|
{ trig = 'dc', desc = 'divider comment' },
|
||||||
f(fill, {}, { user_args = { '--%-- ' } })
|
f(fill, {}, { user_args = { '--%-- ' } })
|
||||||
),
|
),
|
||||||
|
s(
|
||||||
|
{ trig = 'LazyFile', desc = 'LazyFile events for non-lazy.nvim setups' },
|
||||||
|
t('event = { "BufReadPost", "BufWritePost", "BufNewFile" }')
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue