feat: error log snippet for go; changed events for the relative-toggle plugin
This commit is contained in:
14
nvim/lua/snippets/go.lua
Normal file
14
nvim/lua/snippets/go.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
local i = ls.insert_node
|
||||
|
||||
return {
|
||||
-- zap log contents the way i like it
|
||||
s("zaplog", {
|
||||
t({ "", "" }),
|
||||
t({ "\t\"" }), i(1), t({ "\"," }), i(3),
|
||||
t({ "\t", "\tzap.Error(" }), i(2), t({ ")" })
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user