diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-18 14:57:16 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-18 14:57:16 +0100 |
commit | 3dc0468c1d312fad7b9d281c2f1208a728f7f235 (patch) | |
tree | 5875617e8facbb87a1fed05bc8fa5e6d4c50b4c6 | |
parent | 160ce5e9595a18c1434562b42f2371be9c58f102 (diff) |
checkpoint
-rw-r--r-- | lua/config/lsp.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 8d03d84..2c1c24c 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -131,9 +131,6 @@ map({ "i", "s" }, "<C-c>", function() end end, { silent = true }) --- temporary keybind to play around -map("n", " s", "<cmd>source ~/.config/nvim/after/plugin/luasnip.lua<cr>") - ls.config.set_config({ history = true, -- Will update multiple nodes at the same time when in insert mode @@ -142,7 +139,7 @@ ls.config.set_config({ ls.add_snippets("go", { parse_snippet("main", "package main\n\nfunc main() {\n\t$0\n}"), - parse_snippet("e", "if err != nil {\n\tpanic(err)$1\n}\n$0"), + parse_snippet("e", "if err != nil {\n\tpanic(err)$1\n}$0"), parse_snippet("ee", "if err != nil {\n\tfmt.Fprintln(os.Stderr, err)$1\n\tos.Exit(${2:1})\n}\n$0"), parse_snippet("eif", "if err := $1; err != nil {\n\tfmt.Println(err)$2\n}\n$0"), parse_snippet("pf", "fmt.Printf($0)"), |