From 0b3dfbfd98b311c6228f75e6d71d917fa9aa3785 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 11 Oct 2024 17:48:42 +0200 Subject: checkpoint --- after/ftplugin/go.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 after/ftplugin/go.lua (limited to 'after/ftplugin/go.lua') diff --git a/after/ftplugin/go.lua b/after/ftplugin/go.lua new file mode 100644 index 0000000..e17dfea --- /dev/null +++ b/after/ftplugin/go.lua @@ -0,0 +1,8 @@ +local map = vim.keymap.set +map("n", ",p", [[s/\(\s*\)\(.\+\)/\1fmt.Printf("\2: %#v\\n", \2)]], { desc = "Surround var with fmt.Println" }) +map( + "n", + ",e", + [[Iif err := A; err != nil { +}Opanic(err)]] +) -- cgit v1.2.3