50 lines
893 B
Lua
50 lines
893 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({
|
|
ensure_installed = {
|
|
"bash",
|
|
"c",
|
|
"cpp",
|
|
"css",
|
|
"dockerfile",
|
|
"fish",
|
|
"go",
|
|
"gotmpl",
|
|
"html",
|
|
"javascript",
|
|
"json",
|
|
"lua",
|
|
"luadoc",
|
|
"luap",
|
|
"markdown",
|
|
"markdown_inline",
|
|
"python",
|
|
"query",
|
|
"regex",
|
|
"rust",
|
|
"svelte",
|
|
"terraform",
|
|
"toml",
|
|
"tsx",
|
|
"typescript",
|
|
"vim",
|
|
"vimdoc",
|
|
"yaml",
|
|
},
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
})
|
|
end,
|
|
}
|