mirror of
https://github.com/gabehf/base46.git
synced 2026-03-13 09:20:31 -07:00
fix hl_override to override properly | https://github.com/NvChad/NvChad/issues/1233 and #87
This commit is contained in:
parent
896a4a9271
commit
66e057e65d
4 changed files with 17 additions and 6 deletions
|
|
@ -85,10 +85,9 @@ M.extend_default_hl = function(highlights)
|
||||||
|
|
||||||
-- transparency
|
-- transparency
|
||||||
if vim.g.transparency then
|
if vim.g.transparency then
|
||||||
-- highlights_tb = M.merge_tb(highlights_tb,)
|
|
||||||
for key, value in pairs(glassy) do
|
for key, value in pairs(glassy) do
|
||||||
if highlights[key] then
|
if highlights[key] then
|
||||||
highlights[key] = value
|
highlights[key] = M.merge_tb(highlights[key], value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -97,7 +96,7 @@ M.extend_default_hl = function(highlights)
|
||||||
|
|
||||||
for key, value in pairs(overriden_hl) do
|
for key, value in pairs(overriden_hl) do
|
||||||
if highlights[key] then
|
if highlights[key] then
|
||||||
highlights[key] = value
|
highlights[key] = M.merge_tb(highlights[key], value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -106,8 +105,6 @@ M.load_highlight = function(group)
|
||||||
if type(group) == "string" then
|
if type(group) == "string" then
|
||||||
group = require("base46.integrations." .. group)
|
group = require("base46.integrations." .. group)
|
||||||
M.extend_default_hl(group)
|
M.extend_default_hl(group)
|
||||||
else
|
|
||||||
group = group
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for hl, col in pairs(group) do
|
for hl, col in pairs(group) do
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,6 @@ local colors = require("base46").get_theme_tb "base_30"
|
||||||
return {
|
return {
|
||||||
IndentBlanklineChar = { fg = colors.line },
|
IndentBlanklineChar = { fg = colors.line },
|
||||||
IndentBlanklineSpaceChar = { fg = colors.line },
|
IndentBlanklineSpaceChar = { fg = colors.line },
|
||||||
|
IndentBlanklineContextChar = { fg = colors.grey },
|
||||||
|
IndentBlanklineContextStart = { bg = colors.one_bg2 },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,9 @@ return {
|
||||||
WinSeparator = { fg = colors.line },
|
WinSeparator = { fg = colors.line },
|
||||||
|
|
||||||
-- packer
|
-- packer
|
||||||
packerPackageName = { fg = colors.red },
|
PackerPackageName = { fg = colors.red },
|
||||||
|
PackerSuccess = { fg = colors.green },
|
||||||
|
PackeProgress = { fg = colors.blue },
|
||||||
|
|
||||||
Normal = {
|
Normal = {
|
||||||
fg = theme.base05,
|
fg = theme.base05,
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,14 @@ return {
|
||||||
NvimTreeGitNew = {
|
NvimTreeGitNew = {
|
||||||
fg = colors.yellow,
|
fg = colors.yellow,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
NvimTreeSpecialFile = {
|
||||||
|
fg = colors.yellow,
|
||||||
|
bold = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
NvimTreeRootFolder = {
|
||||||
|
fg = colors.red,
|
||||||
|
bold = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue