summaryrefslogtreecommitdiff
path: root/config/kak/go-snippets.kak
diff options
context:
space:
mode:
Diffstat (limited to 'config/kak/go-snippets.kak')
-rw-r--r--config/kak/go-snippets.kak7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/kak/go-snippets.kak b/config/kak/go-snippets.kak
new file mode 100644
index 0000000..b58a2cd
--- /dev/null
+++ b/config/kak/go-snippets.kak
@@ -0,0 +1,7 @@
+set buffer snippets %opt{snippets} # keep global snippets (if any)
+set -add buffer snippets 'err != nil' 'err@' %{ snippets-insert %{if err != nil {
+
+}
+ }
+ }
+