nvim/lua/plugins/nvim-treesitter.lua

27 lines
498 B
Lua
Raw Normal View History

2024-02-21 04:09:18 +00:00
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
2024-02-23 08:38:41 +00:00
opts = {
ensure_installed = {
2024-07-08 06:30:52 +00:00
"bash",
"c",
"diff",
"html",
2024-02-23 08:38:41 +00:00
"lua",
2024-07-08 06:30:52 +00:00
"luadoc",
"markdown",
"nix",
2024-02-23 08:38:41 +00:00
"vim",
2024-07-08 06:30:52 +00:00
"vimdoc",
2024-02-23 08:38:41 +00:00
},
2024-02-21 04:09:18 +00:00
2024-02-23 08:38:41 +00:00
auto_install = true,
highlight = { enable = true },
indent = { enable = true },
},
2024-07-08 06:30:52 +00:00
config = function(_, opts)
require("nvim-treesitter.install").prefer_git = true
require("nvim-treesitter.configs").setup(opts)
end,
2024-02-21 04:09:18 +00:00
}