diff --git a/README.md b/README.md index b88b8d07..05d5f48c 100644 --- a/README.md +++ b/README.md @@ -458,6 +458,23 @@ native_lsp = { + + + + colorful-winsep.nvim + + + +```lua +colorful_winsep = { + enabled = false, + color = "red", +} +``` + + + + diff --git a/doc/catppuccin.txt b/doc/catppuccin.txt index a4a4f9d8..18de181d 100644 --- a/doc/catppuccin.txt +++ b/doc/catppuccin.txt @@ -343,6 +343,13 @@ coc.nvim>lua coc_nvim = false < +colorful-winsep>lua + colorful_winsep = { + enabled = false, + color = 'red' -- a catpuccin color to use for the window separator + }, +< + Special ~ Setting `enabled` to `true` enables this integration. diff --git a/lua/catppuccin/groups/integrations/colorful_winsep.lua b/lua/catppuccin/groups/integrations/colorful_winsep.lua new file mode 100644 index 00000000..d4d5f885 --- /dev/null +++ b/lua/catppuccin/groups/integrations/colorful_winsep.lua @@ -0,0 +1,9 @@ +local M = {} + +function M.get() + return { + NvimSeparator = { bg = C.base, fg = C[O.integrations.colorful_winsep.color] }, + } +end + +return M diff --git a/lua/catppuccin/init.lua b/lua/catppuccin/init.lua index da9ecb66..8c0db2de 100644 --- a/lua/catppuccin/init.lua +++ b/lua/catppuccin/init.lua @@ -96,6 +96,10 @@ local M = { enabled = true, color_mode = false, }, + colorful_winsep = { + enabled = false, + color = "red", + }, }, color_overrides = {}, highlight_overrides = {}, diff --git a/lua/catppuccin/types.lua b/lua/catppuccin/types.lua index 22da8abc..e876fc9d 100644 --- a/lua/catppuccin/types.lua +++ b/lua/catppuccin/types.lua @@ -118,6 +118,7 @@ ---``` ---@field barbecue CtpIntegrationBarbecue | boolean? ---@field beacon boolean? +---@field colorful_winsep CtpIntegrationColorfulWinsep | boolean? ---@field cmp boolean? -- `coc.nvim` links to `native_lsp` highlight groups, so you can use -- `native_lsp.virtual_text` and `native_lsp.underlines` to style diagnostics. @@ -210,6 +211,12 @@ -- Whether the directory name should be dimmed. ---@field dim_dirname boolean? +---@class CtpIntegrationColorfulWinsep +-- Whether to enable the colorful-winsep integration. +---@field enabled boolean +-- Set to a Catppuccin color name to use for the split separator. +---@field color CtpColor? + ---@class CtpIntegrationDropbar -- Whether to enable the dropbar integration. ---@field enabled boolean