mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 23:48:16 -07:00
polish one_light theme (#67) | fix bugged toggle btn
This commit is contained in:
parent
00c34f5dd0
commit
81209f4fec
5 changed files with 90 additions and 35 deletions
|
|
@ -1,11 +1,11 @@
|
|||
-- returns a huge table of all highlight groups & their colors
|
||||
local ui = nvchad.load_config().ui
|
||||
|
||||
local merge_tb = require("base46").merge_tb
|
||||
|
||||
local highlights = {}
|
||||
local hl_dir = vim.fn.stdpath "data" .. "/site/pack/packer/opt/base46/lua/integrations"
|
||||
|
||||
-- push all file names in hl_dir to a table
|
||||
-- push hl_dir file names to table
|
||||
local hl_files = require("plenary.scandir").scan_dir(hl_dir, {})
|
||||
|
||||
for _, file in ipairs(hl_files) do
|
||||
|
|
@ -19,16 +19,22 @@ end
|
|||
-- term colors
|
||||
require "term_hl"
|
||||
|
||||
-- polish theme specific highlights
|
||||
local theme = require("hl_themes." .. ui.theme)
|
||||
|
||||
if theme.polish_hl then
|
||||
highlights = merge_tb(highlights, theme.polish_hl)
|
||||
end
|
||||
|
||||
-- override user highlights if there are any
|
||||
local user_highlights = nvchad.load_config().ui.hl_override
|
||||
highlights = merge_tb(highlights, user_highlights)
|
||||
if ui.hl_override then
|
||||
local user_highlights = nvchad.load_config().ui.hl_override
|
||||
highlights = merge_tb(highlights, user_highlights)
|
||||
end
|
||||
|
||||
-- local set_transparent = nvchad.load_config().ui.transparency
|
||||
local ui = nvchad.load_config().ui
|
||||
|
||||
if ui.transparency then
|
||||
local glassy_hls = require "nv_glassy"
|
||||
highlights = merge_tb(highlights, glassy_hls)
|
||||
highlights = merge_tb(highlights, require "nv_glassy")
|
||||
end
|
||||
|
||||
-- finally set all highlights :D
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue