From 3dc0468c1d312fad7b9d281c2f1208a728f7f235 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 18 Nov 2024 14:57:16 +0100 Subject: checkpoint --- lua/config/lsp.lua | 5 +---- 1 file changed, 1 insertion(+), 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" }, "", function() end end, { silent = true }) --- temporary keybind to play around -map("n", " s", "source ~/.config/nvim/after/plugin/luasnip.lua") - 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)"), -- cgit v1.2.3