From a65ba720a458e8edd47bc6c47baf950b63b56276 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 21 Sep 2022 18:57:09 +0200 Subject: vim: add golang main package snippet --- .vim/lua/snips.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.vim/lua') 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'}) + -- cgit 1.4.1