diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2025-09-27 01:29:24 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2025-09-27 01:29:24 +0200 |
commit | a70eef2af24f804cc017bb1b03ee238b033bffae (patch) | |
tree | d05b1e9b526dc75242426ee079ae322df72b348d /lua/no-clown-fiesta/init.lua | |
parent | 2f57d1115e246b62a1a81bba806fe79aaa53b610 (diff) |
Add themes
Diffstat (limited to 'lua/no-clown-fiesta/init.lua')
-rw-r--r-- | lua/no-clown-fiesta/init.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lua/no-clown-fiesta/init.lua b/lua/no-clown-fiesta/init.lua index 8bad306..66a9c52 100644 --- a/lua/no-clown-fiesta/init.lua +++ b/lua/no-clown-fiesta/init.lua @@ -16,13 +16,16 @@ function M.load() vim.api.nvim_command "syntax reset" end - vim.o.background = "dark" + if opts.theme ~= "white" then + vim.o.background = "dark" + end vim.o.termguicolors = true vim.g.colors_name = "no-clown-fiesta" local util = require "no-clown-fiesta.util" - local palette = require "no-clown-fiesta.palette" + local palettes = require "no-clown-fiesta.palettes" local groups = require "no-clown-fiesta.groups" + local palette = palettes[opts.theme] for _, group in ipairs(groups) do group = group.highlight(palette, opts) |