mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-06 15:20:25 +00:00
28 lines
487 B
Lua
28 lines
487 B
Lua
local present, ts_config = pcall(require, "nvim-treesitter.configs")
|
|
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
local M = {}
|
|
|
|
local chad_defaults = {
|
|
ensure_installed = {
|
|
"lua",
|
|
"vim",
|
|
},
|
|
highlight = {
|
|
enable = true,
|
|
use_languagetree = true,
|
|
},
|
|
}
|
|
|
|
M.setup = function (override_flag)
|
|
if override_flag then
|
|
chad_defaults = require("core.utils").tbl_override_req("nvim_treesitter", chad_defaults)
|
|
end
|
|
ts_config.setup(chad_defaults)
|
|
end
|
|
|
|
return M
|