### Kansō.nvim Configuration Options Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Configures the Kansō.nvim color scheme with various options including font styles, transparency, and theme-specific settings. The `setup` function should be called before setting the colorscheme. ```lua -- Default options: 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 = { -- map the value of 'background' option to a theme dark = "ink", -- try "zen", "mist" or "pearl" ! light = "ink" -- try "zen", "mist" or "pearl" ! }, foreground = "default", -- "default" or "saturated" (can also be a table like background) }) -- setup must be called before loading vim.cmd("colorscheme kanso") ``` -------------------------------- ### Lazy Package Manager Installation Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Installs the Kansō.nvim color scheme using the Lazy package manager for Neovim. This snippet ensures the plugin is loaded with high priority. ```lua { "webhooked/kanso.nvim", lazy = false, priority = 1000, } ``` -------------------------------- ### Packer Package Manager Installation Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Installs the Kansō.nvim color scheme using the Packer package manager for Neovim. ```lua use "webhooked/kanso.nvim" ``` -------------------------------- ### Get Theme Colors Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Provides functions to retrieve color configurations for the current theme or a specific theme. Returns objects containing both palette and theme colors. ```lua -- Get the colors for the current theme local colors = require("kanso.colors").setup() local palette_colors = colors.palette local theme_colors = colors.theme -- Get the colors for a specific theme local zen_colors = require("kanso.colors").setup({ theme = 'zen' }) ``` -------------------------------- ### Switching Themes Directly Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Loads specific theme variants of Kansō.nvim directly using Lua commands. ```lua vim.cmd("colorscheme kanso-zen") vim.cmd("colorscheme kanso-ink") vim.cmd("colorscheme kanso-mist") vim.cmd("colorscheme kanso-pearl") ``` -------------------------------- ### Loading Themes via require Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Loads specific theme variants of Kansō.nvim using the `require` function in Lua. ```lua require("kanso").load("zen") ``` -------------------------------- ### Setting Colorscheme (Lua) Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Applies the Kansō.nvim color scheme using Lua. ```lua vim.cmd("colorscheme kanso") ``` -------------------------------- ### Configure Foreground Saturation Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Sets the foreground saturation for syntax highlighting colors based on the background mode (dark/light). Supports 'default' or 'saturated' modes, with 'saturated' providing increased vibrancy for specific themes. ```lua require('kanso').setup({ foreground = { dark = "default", light = "saturated" }, }) ``` -------------------------------- ### Setting Colorscheme (Vimscript) Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Applies the Kansō.nvim color scheme using Vimscript. ```vim colorscheme kanso ``` -------------------------------- ### Kansō Compile Command Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Compiles the Kansō.nvim colorscheme. This command should be run after making changes to the configuration if compilation is enabled. ```vim :KansoCompile ``` -------------------------------- ### Override Highlight Groups Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Enables customization of specific highlight groups (hlgroups) for built-in elements or external plugins. Supports static color assignments and dynamic updates based on theme changes. Uses the same keywords as nvim_set_hl. ```lua require('kanso').setup({ ..., overrides = function(colors) return { String = { fg = colors.palette.carpYellow, italic = config.italics }, SomePluginHl = { fg = colors.theme.syn.type, bold = true }, } end, ... }) ``` -------------------------------- ### Customize Palette and Theme Colors Source: https://github.com/webhooked/kanso.nvim/blob/main/README.md Allows modification of both palette colors (defined as RGB Hex strings) and theme colors (semantically named). Palette colors can be globally changed, while theme colors can be adjusted for specific themes or all themes. ```lua require('kanso').setup({ ..., colors = { palette = { zen0 = "#000000", fujiWhite = "#FFFFFF", }, theme = { zen = { ui = { float = { bg = "none", }, }, }, ink = { syn = { parameter = "yellow", }, }, all = { ui = { cursor_line_nr_active_foreground = "#C4746E" } } } }, ... }) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.