neovim: setup snippets & remove friendly snippets plugin
This commit is contained in:
15
neovim/.config/nvim/snippets/go.lua
Normal file
15
neovim/.config/nvim/snippets/go.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
---@diagnostic disable:undefined-global
|
||||
|
||||
return {
|
||||
s(
|
||||
{ trig = "iferr", snippetType = "autosnippet" },
|
||||
fmta(
|
||||
[[
|
||||
if err != nil {
|
||||
return <>
|
||||
}
|
||||
]],
|
||||
{ i(0) }
|
||||
)
|
||||
),
|
||||
}
|
||||
Reference in New Issue
Block a user