chore: Update htmljinja treesitter

This commit is contained in:
Ahmad Ansori Palembani 2025-04-20 09:15:43 +07:00
parent 7d4f61cff3
commit e80a0825e0
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 21 additions and 14 deletions

View file

@ -21,6 +21,9 @@ return {
"sxhkdrc",
"latex",
-- HTML template langs
"javascript",
"typescript",
"html",
"htmljinja",
"jinja",
"jinja_inline",
@ -35,8 +38,7 @@ return {
},
},
config = function (_, opts)
local parsers = require("nvim-treesitter.parsers")
local config = parsers.get_parser_configs()
local config = require("nvim-treesitter.parsers").get_parser_configs()
config.gsp = {
install_info = {
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
@ -56,7 +58,7 @@ return {
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
filetype = "htmljinja", -- if filetype does not match the parser name
}
vim.filetype.add({
extension = { rasi = "rasi" },
@ -77,4 +79,8 @@ return {
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
fp = "gsp",
},
{
url = "https://github.com/null2264/tree-sitter-htmldjango",
fp = "htmljinja",
},
}