feat: Add lua snippet

This commit is contained in:
punkfairie 2025-01-01 17:04:59 -08:00
parent b7dfb32623
commit 135091f457
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -1,6 +1,7 @@
local ls = require('luasnip')
local s = ls.snippet
local f = ls.function_node
local t = ls.text_node
local fill = require('snippets.helpers').fill
return {
@ -8,4 +9,8 @@ return {
{ trig = 'dc', desc = 'divider comment' },
f(fill, {}, { user_args = { '--%-- ' } })
),
s(
{ trig = 'LazyFile', desc = 'LazyFile events for non-lazy.nvim setups' },
t('event = { "BufReadPost", "BufWritePost", "BufNewFile" }')
),
}