summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-01 22:00:20 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-01 22:00:20 +0200
commit92e9eb46f66b20ef7c6f9125bbf1708fe647c8b2 (patch)
tree3bb6e032de8392ba015734a6000cde68f1813b7c
parente435d3a072419ef70760c61ba8c9ee5211d2e1aa (diff)
checkpoint
-rw-r--r--after/plugin/luasnip.lua4
-rw-r--r--lua/config/set.lua2
2 files changed, 3 insertions, 3 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)"),
diff --git a/lua/config/set.lua b/lua/config/set.lua
index 201627e..516e2c0 100644
--- a/lua/config/set.lua
+++ b/lua/config/set.lua
@@ -63,7 +63,7 @@ opt.showmatch = false
-- highlight line at cursor
opt.cursorline = true
opt.textwidth = 100
-opt.colorcolumn = "100"
+-- opt.colorcolumn = "102"
-- status line
-- show ruler