Skip to content

Commit

Permalink
fix: config.cmdline.opts now overrides any option from the cmdline fo…
Browse files Browse the repository at this point in the history
…rmats
  • Loading branch information
folke committed Oct 26, 2022
1 parent b152bf5 commit 2851fc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/noice/config/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function M.setup()
local hl_group_border = "CmdlinePopupBorder" .. kind_cc
Highlights.add(hl_group_border, "DiagnosticSignInfo")

formats[name] = vim.tbl_deep_extend("force", { opts = vim.deepcopy(Config.options.cmdline.opts) }, {
formats[name] = vim.tbl_deep_extend("force", {
conceal = format.conceal ~= false,
kind = kind,
icon_hl_group = "Noice" .. hl_group_icon,
Expand All @@ -39,7 +39,7 @@ function M.setup()
},
},
},
}, format)
}, { opts = vim.deepcopy(Config.options.cmdline.opts) }, format)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/noice/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ M.defaults = {
cmdline = {
enabled = true, -- enables the Noice cmdline UI
view = "cmdline_popup", -- view for rendering the cmdline. Change to `cmdline` to get a classic cmdline at the bottom
opts = {}, -- extra opts for the cmdline view. See section on views
opts = {}, -- global options for the cmdline. See section on views
---@type table<string, CmdlineFormat>
format = {
-- conceal: (default=true) This will hide the text in the cmdline that matches the pattern.
Expand Down

0 comments on commit 2851fc2

Please sign in to comment.