summary refs log tree commit diff
path: root/.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim')
-rw-r--r--.vim/lua/snips.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/.vim/lua/snips.lua b/.vim/lua/snips.lua
index 581b782..31d9dd4 100644
--- a/.vim/lua/snips.lua
+++ b/.vim/lua/snips.lua
@@ -165,3 +165,13 @@ ls.add_snippets('gitcommit', {
   s('change', fmt('Change-type: {}', {c(1, {t('patch'), t('minor'), t('major')}) }))
 }, { type = 'snippets', key = 'signature_helpers'})
 
+ls.add_snippets('go', {
+  s('pack:main', fmt([[
+    package main
+
+    func main() {{
+	{}
+    }}
+    ]], {i(1, 'println("hello world!")')}))
+}, { type = 'snippets', key = 'golang'})
+