mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 07:28:50 -07:00
Merge pull request #92 from rudenkornk/master
Fix user highlights not updated on theme toggling
This commit is contained in:
commit
6e66bc4ad4
2 changed files with 5 additions and 2 deletions
|
|
@ -19,7 +19,9 @@ if polish_hl then
|
|||
end
|
||||
|
||||
-- override user highlights if there are any
|
||||
local user_highlights = ui.hl_override
|
||||
local user_hl_override = vim.deepcopy(ui.hl_override)
|
||||
local user_hl_add = vim.deepcopy(ui.hl_add)
|
||||
local user_highlights = merge_tb(user_hl_override, user_hl_add)
|
||||
local colors = require("base46").get_theme_tb "base_30"
|
||||
|
||||
-- fg = "white" set by user becomes fg = colors["white"]
|
||||
|
|
|
|||
|
|
@ -56,7 +56,8 @@ M.load_all_highlights = function()
|
|||
end
|
||||
end
|
||||
|
||||
M.turn_str_to_color = function(tb)
|
||||
M.turn_str_to_color = function(tb_in)
|
||||
local tb = vim.deepcopy(tb_in)
|
||||
local colors = M.get_theme_tb "base_30"
|
||||
|
||||
for _, groups in pairs(tb) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue