nvim/lua/plugins/nvim-treesitter.lua
2024-07-08 14:41:39 +08:00

26 lines
498 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
opts = {
ensure_installed = {
"bash",
"c",
"diff",
"html",
"lua",
"luadoc",
"markdown",
"nix",
"vim",
"vimdoc",
},
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
},
config = function(_, opts)
require("nvim-treesitter.install").prefer_git = true
require("nvim-treesitter.configs").setup(opts)
end,
}