feat: add minimal mode for reduced color palette

Add new `minimal` config option that provides a cleaner, more focused
  color scheme with fewer distinct colors:
  - Variables/constants: white
  - Functions/methods: blue
  - Types: aqua
  - Keywords/statements: gray
  - Operators: yellow
  - Brackets/punctuation: gray
  - Properties/members: violet
This commit is contained in:
Webhooked 2026-01-31 16:23:13 +01:00
commit 1afbbb449a
5 changed files with 86 additions and 20 deletions

View file

@ -11,6 +11,7 @@ M.config = {
bold = true,
italics = true,
undercurl = true,
minimal = false,
commentStyle = { italic = true },
functionStyle = {},
keywordStyle = { italic = true },
@ -48,6 +49,11 @@ function M.setup(config)
else
vim.notify("Kanso: Errors found while loading user config. Using default config.", vim.log.levels.ERROR)
end
-- Reload colorscheme if already active to apply new config
if vim.g.colors_name == "kanso" then
M.load(M._EXPLICIT_THEME)
end
end
--- load the colorscheme