31 lines
558 B
Lua
31 lines
558 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
branch = "main",
|
|
event = { "BufReadPost", "BufNewFile" },
|
|
config = function()
|
|
local ts = require("nvim-treesitter")
|
|
ts.setup({
|
|
ensure_installed = {
|
|
"python",
|
|
"go",
|
|
"kotlin",
|
|
"dart",
|
|
"lua",
|
|
"bash",
|
|
"json",
|
|
"yaml",
|
|
"markdown",
|
|
"vim",
|
|
"vimdoc",
|
|
},
|
|
sync_install = false,
|
|
auto_install = true,
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_highlighting = false,
|
|
},
|
|
})
|
|
pcall(vim.treesitter.language.register, "html", "gotmpl")
|
|
end,
|
|
}
|