Added some custom snippets and ability to expand with more
This commit is contained in:
14
lua/haelnorr/snippets/lua.lua
Normal file
14
lua/haelnorr/snippets/lua.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local i = ls.insert_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
return {
|
||||
s(
|
||||
"snip",
|
||||
fmt('s("{}", fmt(\n "{}"\n, {{\n {}\n}})),', {
|
||||
i(1, "trigger"),
|
||||
i(2, "snippet body"),
|
||||
i(3, "insert nodes"),
|
||||
})
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user