2022-04-27 17:42:28 +02:00
|
|
|
local present, treesitter = pcall(require, "nvim-treesitter.configs")
|
2021-11-17 06:30:57 +01:00
|
|
|
|
2021-07-17 13:14:52 +02:00
|
|
|
if not present then
|
2021-08-16 09:49:09 +02:00
|
|
|
return
|
2021-06-25 18:06:13 +02:00
|
|
|
end
|
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
local options = {
|
2021-08-16 09:49:09 +02:00
|
|
|
ensure_installed = {
|
|
|
|
"lua",
|
2021-11-19 02:47:09 +01:00
|
|
|
"vim",
|
2021-08-16 09:49:09 +02:00
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
use_languagetree = true,
|
|
|
|
},
|
2021-07-15 17:43:17 +02:00
|
|
|
}
|
2022-01-21 01:26:05 +01:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
-- check for any override
|
2022-05-10 15:43:48 +02:00
|
|
|
options = nvchad.load_override(options, "nvim-treesitter/nvim-treesitter")
|
2022-01-21 01:26:05 +01:00
|
|
|
|
2022-04-27 17:42:28 +02:00
|
|
|
treesitter.setup(options)
|