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