20 lines
487 B
Lua
20 lines
487 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
config = function()
|
|
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
|
parser_config.gotmpl = {
|
|
install_info = {
|
|
url = "https://github.com/ngalaiko/tree-sitter-go-template",
|
|
files = { "src/parser.c" },
|
|
},
|
|
filetype = "gotmpl",
|
|
used_by = { "gohtmltmpl", "gotexttmpl", "gotmpl", "yaml" },
|
|
}
|
|
require("nvim-treesitter.configs").setup({
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
})
|
|
end,
|
|
}
|