1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
--{
-- "nvim-treesitter/playground", -- inspect treesitter structure
-- cmd = "TSPlaygroundToggle"
--},
"HiPhish/rainbow-delimiters.nvim", -- colored delimiters per scope level
{
"windwp/nvim-ts-autotag", -- close tags in html/xml type languages
opts = {
per_filetype = {
["html"] = { enable_close = true },
}
}
},
},
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "comment",
"javascript", "html", "css", "scss", "python", "php" },
auto_install = true, -- install available parsers when entering new buffers
highlight = { enable = true, disable = { "yaml" } },
indent = { enable = true, disable = { "yaml" } },
--playground = { enable = true }, -- treesitter debug
})
end
}
|