feat: add auto-save plugin with toggle mapping;

feat: windsurf is back;
feat: add html snippet for boilerplate;
refactor: lsp config due to deprecation;
refactor: update hop mappings to current-line only with offsets;
chore: adjust base02 color in kolyan theme
This commit is contained in:
2025-11-06 00:34:29 +03:00
parent 070e44a5e0
commit bc80157fa9
8 changed files with 204 additions and 83 deletions

View File

@@ -0,0 +1,40 @@
local ls = require("luasnip")
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
local fmt = require("luasnip.extras.fmt").fmt
return {
s("!", {
t("<!DOCTYPE html>"),
t({"", "<html lang=\""}), i(1, "en"), t({"\" >", ""}),
t({"<head>", ""}),
t({" <meta charset=\"UTF-8\">", ""}),
t({" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">", ""}),
t({" <title>"}), i(2, "Document"), t({"</title>", ""}),
t({"</head>", ""}),
t({"<body>", ""}),
i(0),
t({"", "</body>", ""}),
t({"</html>"})
}),
-- Alternative version using fmt for cleaner formatting
s("!html", fmt([[
<!DOCTYPE html>
<html lang="{}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{}</title>
</head>
<body>
{}
</body>
</html>
]], {
i(1, "en"),
i(2, "Document"),
i(0)
}))
}