mirror of
https://github.com/gabehf/base46.git
synced 2026-03-17 03:06:30 -07:00
Feat: enable add_hl in themes
This commit is contained in:
parent
8a244db737
commit
09a7e86459
1 changed files with 10 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ end
|
||||||
|
|
||||||
M.extend_default_hl = function(highlights)
|
M.extend_default_hl = function(highlights)
|
||||||
local polish_hl = M.get_theme_tb "polish_hl"
|
local polish_hl = M.get_theme_tb "polish_hl"
|
||||||
|
local add_hl = M.get_theme_tb "add_hl"
|
||||||
|
|
||||||
-- polish themes
|
-- polish themes
|
||||||
if polish_hl then
|
if polish_hl then
|
||||||
|
|
@ -56,6 +57,15 @@ M.extend_default_hl = function(highlights)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- add new hl
|
||||||
|
if add_hl then
|
||||||
|
for key, value in pairs(add_hl) do
|
||||||
|
if not highlights[key] and type(value) == "table" then
|
||||||
|
highlights[key] = value
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- transparency
|
-- transparency
|
||||||
if vim.g.transparency then
|
if vim.g.transparency then
|
||||||
local glassy = require "base46.glassy"
|
local glassy = require "base46.glassy"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue