diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-02 21:31:10 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-02 21:31:10 +0200 |
commit | dea978318e7a0244362706795ac777e7cd46c4da (patch) | |
tree | 8570368c137366a2bf69930b04521272536113af /after | |
parent | b70a49ed77cec7d0bf5c55429ebf6e2f3ad36812 (diff) | |
parent | 92e9eb46f66b20ef7c6f9125bbf1708fe647c8b2 (diff) |
Merge branch 'main' of db:nvim
Diffstat (limited to 'after')
-rw-r--r-- | after/plugin/luasnip.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua index f58745c..7959de9 100644 --- a/after/plugin/luasnip.lua +++ b/after/plugin/luasnip.lua @@ -27,8 +27,8 @@ ls.config.set_config({ ls.add_snippets("go", { ls.parser.parse_snippet("main", "package main\n\nfunc main() {\n\t$0\n}"), - ls.parser.parse_snippet("e", "if err != nil {\n\tfmt.Println(err)$1\n}\n$0"), - ls.parser.parse_snippet("ee", "if err != nil {\n\tfmt.Println(err)$1\n\tos.Exit(${2:1})\n}\n$0"), + ls.parser.parse_snippet("e", "if err != nil {\n\tpanic(err)$1\n}\n$0"), + ls.parser.parse_snippet("ee", "if err != nil {\n\tfmt.Fprintln(os.Stderr, err)$1\n\tos.Exit(${2:1})\n}\n$0"), ls.parser.parse_snippet("eif", "if err := $1; err != nil {\n\tfmt.Println(err)$2\n}\n$0"), ls.parser.parse_snippet("pf", "fmt.Printf($0)"), ls.parser.parse_snippet("pl", "fmt.Println($0)"), |