fix: Fork tree-sitter-htmldjango

This commit is contained in:
Ahmad Ansori Palembani 2025-03-21 09:04:36 +07:00
parent c8edd24998
commit 0e18070f51
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 35 additions and 22 deletions

View file

@ -25,6 +25,8 @@ return {
-- "ruff",
-- "ruff_lsp",
-- << Python
"jinja_lsp",
},
automatic_installation = { exclude = { "rust_analyzer" } },
},

View file

@ -20,6 +20,10 @@ return {
"rust",
"sxhkdrc",
"latex",
-- HTML template langs
"htmljinja",
"jinja",
"jinja_inline",
},
sync_install = false,
@ -46,6 +50,13 @@ return {
},
filetype = "fluent", -- if filetype does not match the parser name
}
config.htmljinja = {
install_info = {
url = "https://github.com/null2264/tree-sitter-htmldjango", -- local path or git repo
files = {"src/parser.c"}, -- note that some parsers also require src/scanner.c or src/scanner.cc
},
filetype = "htmldjango", -- if filetype does not match the parser name
}
vim.filetype.add({
extension = { rasi = "rasi" },
pattern = {