improving startup time by using lazy loading or filetype loading

This commit is contained in:
Jeremie Fraeys 2024-07-21 20:57:00 -04:00
parent bdb655c5a1
commit 7f1b34fd6f
62 changed files with 1285 additions and 561 deletions

View file

@ -0,0 +1,20 @@
local ls = require 'luasnip'
local s = ls.snippet
local i = ls.insert_node
local t = ls.text_node
ls.add_snippets('lua', {
s('lr', {
t 'local ',
i(1, 'module'),
t ' = require("',
i(2, 'module'),
t '")',
}),
s('pr', {
t 'print(',
i(1, 'text'),
t ')',
}),
})