Added support for modifying specific key values in default configs via chadrc to all plugin configurations with setup table(s)
This commit is contained in:
@@ -4,7 +4,9 @@ if not present then
|
||||
return
|
||||
end
|
||||
|
||||
ts_config.setup {
|
||||
local M = {}
|
||||
|
||||
local chad_defaults = {
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
@@ -14,3 +16,12 @@ ts_config.setup {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user