42 lines
719 B
Lua
42 lines
719 B
Lua
|
return {
|
||
|
"nvim-treesitter/nvim-treesitter",
|
||
|
event = { "BufReadPre", "BufNewFile" },
|
||
|
build = ":TSUpdate",
|
||
|
dependencies = {
|
||
|
"windwp/nvim-ts-autotag",
|
||
|
},
|
||
|
config = function()
|
||
|
local treesitter = require("nvim-treesitter.configs")
|
||
|
|
||
|
treesitter.setup({
|
||
|
highlight = { enable = true },
|
||
|
indent = { enable = true },
|
||
|
autotag = { enable = true },
|
||
|
ensure_installed = {
|
||
|
"json",
|
||
|
"java",
|
||
|
"javascript",
|
||
|
"typescript",
|
||
|
"tsx",
|
||
|
"yaml",
|
||
|
"html",
|
||
|
"css",
|
||
|
"prisma",
|
||
|
"markdown",
|
||
|
"markdown_inline",
|
||
|
"graphql",
|
||
|
"gleam",
|
||
|
"bash",
|
||
|
"lua",
|
||
|
"vim",
|
||
|
"dockerfile",
|
||
|
"gitignore",
|
||
|
"c",
|
||
|
"rust",
|
||
|
"elm",
|
||
|
"go",
|
||
|
},
|
||
|
})
|
||
|
end,
|
||
|
}
|