Added a minimal theme to test out.

This commit is contained in:
normanras
2026-04-22 18:29:21 -04:00
parent 1e1f820040
commit a3a78226b7
4 changed files with 175 additions and 3 deletions

View File

@ -23,7 +23,8 @@ function M.setup(opts)
M.config = vim.tbl_deep_extend("force", M.config, opts or {})
end
function M.load()
---@param variant? string e.g. "minimal"
function M.load(variant)
if vim.g.colors_name then
vim.cmd("hi clear")
end
@ -32,10 +33,10 @@ function M.load()
end
vim.o.termguicolors = true
vim.g.colors_name = "n8n"
vim.g.colors_name = variant and ("n8n-" .. variant) or "n8n"
vim.o.background = "dark"
local theme = require("n8n.theme")
local theme = variant and require("n8n.themes." .. variant) or require("n8n.theme")
local groups_mod = require("n8n.groups")
local c = theme.colors()