This commit is contained in:
2023-12-29 18:00:57 -05:00
parent 97cf8dedbc
commit 2230159029
2 changed files with 15 additions and 0 deletions

View File

@@ -10,3 +10,5 @@ local opt = vim.opt
opt.laststatus = 3 opt.laststatus = 3
opt.swapfile = false opt.swapfile = false
vim.g.lua_snippets_path = { vim.fn.stdpath "config" .. "/snippets" }

13
snippets/elixir.lua Normal file
View File

@@ -0,0 +1,13 @@
-- https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md
local ls = require "luasnip"
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
return {
s("iip", {
t '|> IO.inspect(label: "',
i(1, "label"),
t '")',
}),
}