Refactor all the custom modules into better structures. Clear separation of keybindings that belong to cusstom modules. Added custom snippets and vsc snippets.

This commit is contained in:
2025-08-29 16:56:33 +02:00
parent faad6ae58b
commit b5095d9097
15 changed files with 234 additions and 169 deletions

9
snippets/all.lua Normal file
View File

@@ -0,0 +1,9 @@
local ls = require("luasnip")
local s = ls.snippet
local t = ls.text_node
return {
s("sig", {
t("Best regards,"), t({ "", "Jonas Hahn" }),
}),
}

17
snippets/go.lua Normal file
View File

@@ -0,0 +1,17 @@
local ls = require("luasnip")
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
return {
s("cfo", { -- check for error
t("if err != nil {"), t({ "", "\t" }),
i(1, "return err"),
t({ "", "}" })
}),
s("struct", {
t("type "), i(1, "MyStruct"), t(" struct {"),
t({ "", "\t" }), i(2, "Field type"),
t({ "", "}" })
}),
}