From 7004d08984de9fd02dd3f1dde3c9f78817f31dd0 Mon Sep 17 00:00:00 2001 From: mvllow Date: Sun, 7 Jan 2024 15:36:22 -0600 Subject: [PATCH] fix: invalid reference --- lua/rose-pine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 9d99fc0..aae44bc 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -611,11 +611,11 @@ local function set_highlights() end 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. 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. options.inherit = nil -- Don't add this key to the highlight_group. highlights[group] = options