feat: add gotmpl
This commit is contained in:
@@ -3,11 +3,12 @@ vim.loader.enable()
|
||||
local log = require("log")
|
||||
|
||||
local files = {
|
||||
"globals",
|
||||
"options",
|
||||
"autocommands",
|
||||
"commands",
|
||||
"filetypes",
|
||||
"globals",
|
||||
"mappings",
|
||||
"options",
|
||||
}
|
||||
|
||||
for _, file in ipairs(files) do
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
vim.filetype.add({
|
||||
pattern = {
|
||||
[".*%.xml%.tmpl"] = "gotmpl",
|
||||
},
|
||||
})
|
||||
@@ -16,6 +16,7 @@ local languages = {
|
||||
"rust",
|
||||
"comment",
|
||||
"gitcommit",
|
||||
"gotmpl",
|
||||
}
|
||||
|
||||
---@type LazyPluginSpec
|
||||
|
||||
@@ -8,6 +8,7 @@ return {
|
||||
local c = require("onedark.colors")
|
||||
local highlights = {
|
||||
["@string.special.url"] = { fg = "NONE", fmt = "NONE" },
|
||||
["@lsp.type.macro.gotmpl"] = { fg = "NONE", fmt = "NONE" },
|
||||
Cursor = { fg = c.bg, bg = c.fg, fmt = "NONE" },
|
||||
FloatTitle = { fg = c.orange, 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