Files
dotfiles/.config/nvim/lua/plugins/treesitter.lua
T
2026-07-18 19:57:17 +03:00

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,
}