diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-01 22:00:20 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-01 22:00:20 +0200 |
commit | 92e9eb46f66b20ef7c6f9125bbf1708fe647c8b2 (patch) | |
tree | 3bb6e032de8392ba015734a6000cde68f1813b7c /after | |
parent | e435d3a072419ef70760c61ba8c9ee5211d2e1aa (diff) |
checkpoint
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 c7ee31b..6d9f38d 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)"), |