2023-01-04 13:32:59 +01:00
|
|
|
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if not present then return end
|
|
|
|
|
|
|
|
treesitter.setup({
|
2022-10-11 07:40:50 +02:00
|
|
|
auto_install = true,
|
|
|
|
ignore_install = {
|
|
|
|
"phpdoc",
|
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
},
|
2022-10-17 17:13:31 +02:00
|
|
|
rainbow = {
|
|
|
|
enable = true,
|
|
|
|
extended_mode = true,
|
|
|
|
max_file_lines = 8192,
|
|
|
|
},
|
2022-10-11 07:40:50 +02:00
|
|
|
ensure_installed = {
|
|
|
|
"bash",
|
|
|
|
"css",
|
|
|
|
"dockerfile",
|
|
|
|
"go",
|
|
|
|
"html",
|
|
|
|
"javascript",
|
|
|
|
"json",
|
|
|
|
"lua",
|
|
|
|
"markdown",
|
|
|
|
"python",
|
|
|
|
"regex",
|
|
|
|
"rust",
|
|
|
|
"scss",
|
|
|
|
"toml",
|
|
|
|
"tsx",
|
|
|
|
"typescript",
|
|
|
|
"yaml",
|
|
|
|
},
|
2022-07-30 07:17:12 +02:00
|
|
|
})
|