summaryrefslogtreecommitdiff
path: root/lua/config/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/lsp.lua')
-rw-r--r--lua/config/lsp.lua5
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)"),