diff --git a/nvim/lua/snippets/lua.lua b/nvim/lua/snippets/lua.lua index 347fede..3cd322c 100644 --- a/nvim/lua/snippets/lua.lua +++ b/nvim/lua/snippets/lua.lua @@ -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" }') + ), }