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
|
|
@ -5,7 +5,9 @@ if not present then
|
|||
return
|
||||
end
|
||||
|
||||
bufferline.setup {
|
||||
local M = {}
|
||||
|
||||
local chad_defaults = {
|
||||
options = {
|
||||
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
|
||||
buffer_close_icon = "",
|
||||
|
|
@ -135,3 +137,12 @@ bufferline.setup {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
M.setup = function(override_flag)
|
||||
if override_flag then
|
||||
chad_defaults = require("core.utils").tbl_override_req("bufferline", chad_defaults)
|
||||
end
|
||||
bufferline.setup(chad_defaults)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue