Added a minimal theme to test out.
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user