feat: add gotmpl
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
vim.filetype.add({
|
||||||
|
pattern = {
|
||||||
|
[".*%.xml%.tmpl"] = "gotmpl",
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -16,6 +16,7 @@ local languages = {
|
|||||||
"rust",
|
"rust",
|
||||||
"comment",
|
"comment",
|
||||||
"gitcommit",
|
"gitcommit",
|
||||||
|
"gotmpl",
|
||||||
}
|
}
|
||||||
|
|
||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
|
|||||||
@@ -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 },
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
((text) @injection.content
|
||||||
|
(#set! injection.language "html")
|
||||||
|
(#set! injection.combined))
|
||||||
Reference in New Issue
Block a user