mirror of
https://github.com/webhooked/kanso.nvim.git
synced 2026-06-05 08:37:02 +02:00
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:
parent
f9f9270c79
commit
1afbbb449a
5 changed files with 86 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue