diff --git a/nvim/lua/plugins/relative-toggle.lua b/nvim/lua/plugins/relative-toggle.lua index 2fd09e1..a34d557 100644 --- a/nvim/lua/plugins/relative-toggle.lua +++ b/nvim/lua/plugins/relative-toggle.lua @@ -5,8 +5,8 @@ return { require("relative-toggle").setup({ pattern = "*", events = { - on = { "BufEnter", "FocusGained", "InsertLeave", "WinEnter", "CmdlineLeave" }, - off = { "BufLeave", "FocusLost", "InsertEnter", "WinLeave", "CmdlineEnter" }, + on = { "InsertLeave" }, + off = { "InsertEnter" }, }, }) end diff --git a/nvim/lua/snippets/go.lua b/nvim/lua/snippets/go.lua new file mode 100644 index 0000000..599a819 --- /dev/null +++ b/nvim/lua/snippets/go.lua @@ -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({ ")" }) + }), +} +