neovim: setup snippets & remove friendly snippets plugin

This commit is contained in:
2026-03-14 13:08:21 +03:00
parent 80d66d9b56
commit c7863f029a
5 changed files with 50 additions and 24 deletions

View File

@@ -0,0 +1,15 @@
---@diagnostic disable:undefined-global
return {
s(
{ trig = "iferr", snippetType = "autosnippet" },
fmta(
[[
if err != nil {
return <>
}
]],
{ i(0) }
)
),
}

View File

@@ -0,0 +1,15 @@
---@diagnostic disable:undefined-global
return {
s(
{ trig = "if" },
fmta(
[[
if <> then
<>
fi
]],
{ i(1), i(2) }
)
),
}