mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
add aerial
This commit is contained in:
parent
2a6ff7e85a
commit
8c0ff1e499
3 changed files with 23 additions and 2 deletions
|
|
@ -1,3 +1,6 @@
|
|||
local ls = require "luasnip"
|
||||
|
||||
local fmta = require("luasnip.extras.fmt").fmta
|
||||
ls.add_snippets("go", {
|
||||
s("ie", fmta("if err != nil {\n\treturn <err>\n}", { err = i(1, "err") })),
|
||||
ls.snippet("ie", fmta("if err != nil {\n\treturn <err>\n}", { err = ls.insert_node(1, "err") })),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue