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:
parent
cf7f8a557a
commit
c3beea11ee
7 changed files with 137 additions and 39 deletions
|
|
@ -4,7 +4,9 @@ if not present then
|
|||
return
|
||||
end
|
||||
|
||||
telescope.setup {
|
||||
local M = {}
|
||||
|
||||
local chad_defaults = {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
|
|
@ -53,10 +55,20 @@ telescope.setup {
|
|||
},
|
||||
}
|
||||
|
||||
local extensions = { "themes", "terms" }
|
||||
|
||||
pcall(function()
|
||||
for _, ext in ipairs(extensions) do
|
||||
telescope.load_extension(ext)
|
||||
function M.setup(override_flag)
|
||||
if override_flag then
|
||||
chad_defaults = require("core.utils").tbl_override_req("telescope", chad_defaults)
|
||||
end
|
||||
end)
|
||||
|
||||
telescope.setup(chad_defaults)
|
||||
|
||||
local extensions = { "themes", "terms" }
|
||||
|
||||
pcall(function()
|
||||
for _, ext in ipairs(extensions) do
|
||||
telescope.load_extension(ext)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue