23 lines
634 B
Lua
23 lines
634 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
version = false,
|
|
build = ":TSUpdate",
|
|
main = "nvim-treesitter.configs",
|
|
opts = {
|
|
ensure_installed = {
|
|
"bash", "bibtex", "c", "css", "fish", "go",
|
|
"java", "rust", "lua", "vim", "python", "cpp",
|
|
"markdown", "markdown-inline","html", "yaml", "latex" },
|
|
auto_install = false,
|
|
highlight = { enable = true },
|
|
indent = { enable = true },
|
|
autotag = { enable = true },
|
|
},
|
|
config = function(_, opts)
|
|
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
|
if ok then configs.setup(opts) end
|
|
end,
|
|
}
|
|
|
|
|