feat: add gotmpl

This commit is contained in:
2026-02-11 18:50:51 +01:00
parent 4100aca262
commit af2d8df323
5 changed files with 13 additions and 2 deletions
+3 -2
View File
@@ -3,11 +3,12 @@ vim.loader.enable()
local log = require("log") local log = require("log")
local files = { local files = {
"globals",
"options",
"autocommands", "autocommands",
"commands", "commands",
"filetypes",
"globals",
"mappings", "mappings",
"options",
} }
for _, file in ipairs(files) do for _, file in ipairs(files) do
+5
View File
@@ -0,0 +1,5 @@
vim.filetype.add({
pattern = {
[".*%.xml%.tmpl"] = "gotmpl",
},
})
+1
View File
@@ -16,6 +16,7 @@ local languages = {
"rust", "rust",
"comment", "comment",
"gitcommit", "gitcommit",
"gotmpl",
} }
---@type LazyPluginSpec ---@type LazyPluginSpec
+1
View File
@@ -8,6 +8,7 @@ return {
local c = require("onedark.colors") local c = require("onedark.colors")
local highlights = { local highlights = {
["@string.special.url"] = { fg = "NONE", fmt = "NONE" }, ["@string.special.url"] = { fg = "NONE", fmt = "NONE" },
["@lsp.type.macro.gotmpl"] = { fg = "NONE", fmt = "NONE" },
Cursor = { fg = c.bg, bg = c.fg, fmt = "NONE" }, Cursor = { fg = c.bg, bg = c.fg, fmt = "NONE" },
FloatTitle = { fg = c.orange, bg = c.bg_d }, FloatTitle = { fg = c.orange, bg = c.bg_d },
NormalFloat = { bg = c.bg_d }, NormalFloat = { bg = c.bg_d },
+3
View File
@@ -0,0 +1,3 @@
((text) @injection.content
(#set! injection.language "html")
(#set! injection.combined))