mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
fix: invalid reference
This commit is contained in:
parent
be538fa309
commit
7004d08984
1 changed files with 2 additions and 2 deletions
|
|
@ -611,11 +611,11 @@ local function set_highlights()
|
||||||
end
|
end
|
||||||
|
|
||||||
for group, options in pairs(config.options.highlight_groups) do
|
for group, options in pairs(config.options.highlight_groups) do
|
||||||
local default_opts = highlights[group]
|
local default_opts = highlights[group] or {}
|
||||||
|
|
||||||
if (options.inherit == nil or options.inherit) and default_opts ~= nil then -- On merge.
|
if (options.inherit == nil or options.inherit) and default_opts ~= nil then -- On merge.
|
||||||
options.inherit = nil -- Don't add this key to the highlight_group after merge.
|
options.inherit = nil -- Don't add this key to the highlight_group after merge.
|
||||||
M.defaults[group] = vim.tbl_extend("force", default_opts, options)
|
highlights[group] = vim.tbl_extend("force", default_opts, options)
|
||||||
else -- On overwrite.
|
else -- On overwrite.
|
||||||
options.inherit = nil -- Don't add this key to the highlight_group.
|
options.inherit = nil -- Don't add this key to the highlight_group.
|
||||||
highlights[group] = options
|
highlights[group] = options
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue