Configure the theme using require('kanso').setup(). Note that setup must be called before loading the colorscheme with vim.cmd('colorscheme kanso').
Important Requirements:
- Ensure
'laststatus' and 'cmdheight' are set before calling setup so the theme can adjust to them. - If you enable
compile = true, you must run the :KansoCompile command every time you modify your configuration.
require('kanso').setup({
bold = true, -- enable bold fonts
italics = true, -- enable italics
compile = false, -- enable compiling the colorscheme
undercurl = true, -- enable undercurls
commentStyle = { italic = true },
functionStyle = {},
keywordStyle = { italic = true},
statementStyle = {},
typeStyle = {},
transparent = false, -- do not set background color
dimInactive = false, -- dim inactive window `:h hl-NormalNC`
terminalColors = true, -- define vim.g.terminal_color_{0,17}
colors = { -- add/modify theme and palette colors
palette = {},
theme = { zen = {}, pearl = {}, ink = {}, all = {} },
},
overrides = function(colors) -- add/modify highlights
return {}
end,
background = {
dark = "ink", -- try "zen", "mist" or "pearl" !
light = "pearl" -- try "zen", "mist" or "ink" !
},
foreground = "default", -- "default" or "saturated" (can also be a table like background)
minimal = false, -- reduced color palette for a more minimal look,
})
-- setup must be called before loading
vim.cmd("colorscheme kanso")