Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integration): add colorful-winsep.nvim #701

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,23 @@ native_lsp = {
</tr>
<!-- coc.nvim -->

<!-- colorful-winsep.nvim -->
</tr>
<tr>
<td> <a href="https://github.com/nvim-zh/colorful-winsep.nvim">colorful-winsep.nvim</a>
</td>
<td>

```lua
colorful_winsep = {
enabled = false,
color = "red",
}
```
</td>
</tr>
<!-- colorful_winsep.nvim -->

<!-- dashboard-nvim -->
</tr>
<tr>
Expand Down
7 changes: 7 additions & 0 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions lua/catppuccin/groups/integrations/colorful_winsep.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local M = {}

function M.get()
return {
NvimSeparator = { bg = C.base, fg = C[O.integrations.colorful_winsep.color] },
}
end

return M
4 changes: 4 additions & 0 deletions lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ local M = {
enabled = true,
color_mode = false,
},
colorful_winsep = {
enabled = false,
color = "red",
},
},
color_overrides = {},
highlight_overrides = {},
Expand Down
7 changes: 7 additions & 0 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Loading