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:47:32 +01:00
parent f9f9270c79
commit 1afbbb449a
5 changed files with 86 additions and 20 deletions
+6
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