neovim light theme working 1

This commit is contained in:
2025-09-26 00:52:00 +00:00
parent 23309c9a12
commit 14eac65897
12 changed files with 371 additions and 270 deletions

View File

@@ -20,7 +20,7 @@ end
function M.apply(theme)
local base = "themes." .. theme.name
local P = require(base .. ".palette").get()
local P = require(base .. ".palette").get(theme.mode)
local C = require(base .. ".colors").get(P)
local modules = {
@@ -54,19 +54,10 @@ function M.apply(theme)
end
local hl = {}
-- ALT: Use both scenarios
-- if type(v) == "number" then
-- hl.ctermfg = v
-- else
-- hl.fg = v
-- end
for k, v in pairs(opts) do
if k == "fg" then
hl.fg = v
hl.ctermfg = v
elseif k == "bg" then
hl.bg = v
hl.ctermbg = v
else
hl[k] = v -- bold, italic, underline, sp, etc.