marleyvim/nvim/lua/snippets/lua.lua

20 lines
542 B
Lua

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 {
s(
{ 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" }')
),
s(
{ trig = 'VeryLazy', desc = 'VeryLazy events for non-lazy.nvim setups' },
t('event = { "DeferredUIEnter" }')
),
}