From def2a93c3fb45c80b00fdc551bad4a053df0041d Mon Sep 17 00:00:00 2001 From: s-kontrol Date: Thu, 26 Jun 2025 14:32:25 -0300 Subject: [PATCH] new snippet for golang --- lua/snippets/go.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lua/snippets/go.lua b/lua/snippets/go.lua index c056ebe0..e398a420 100644 --- a/lua/snippets/go.lua +++ b/lua/snippets/go.lua @@ -1,16 +1,10 @@ local ls = require 'luasnip' local s = ls.snippet local t = ls.text_node -local i = ls.insert_node return { - s('main', { - t { 'func main() {', '\t' }, - i(1), - t { '', '}' }, - }), - s('reverseString', { + s('reverseString!', { t { 'func reverseString(s string) string {', '\trunes := []rune(s)', @@ -21,4 +15,5 @@ return { '}', }, }), + -- new snipp }