Skip to content

Commit

Permalink
feat(integrations): add rainbow_delimiters.nvim support
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 5, 2023
1 parent c75562c commit c2ef282
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,20 @@ pounce = false
</tr>
<!-- pounce.nvim -->

<!-- rainbow-delimiters.nvim -->
</tr>
<tr>
<td> <a href="https://github.com/HiPhish/rainbow-delimiters.nvim">rainbow-delimiters.nvim</a> </td>
<td>

```lua
rainbow_delimiters = true
```

</td>
</tr>
<!-- rainbow-delimiters.nvim -->

<!-- symbols-outline.nvim -->
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,10 @@ pounce.nvim>lua
pounce = false
<

rainbow-delimiters.nvim>lua
rainbow_delimiters = true
<

symbols-outline.nvim>lua
symbols_outline = false
<
Expand Down
15 changes: 15 additions & 0 deletions lua/catppuccin/groups/integrations/rainbow_delimiters.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
local M = {}

function M.get()
return {
RainbowDelimiterRed = { link = C.red },
RainbowDelimiterYellow = { fg = C.yellow },
RainbowDelimiterBlue = { fg = C.blue },
RainbowDelimiterOrange = { fg = C.peach },
RainbowDelimiterGreen = { fg = C.green },
RainbowDelimiterViolet = { fg = C.mauve },
RainbowDelimiterCyan = { fg = C.teal },
}
end

return M
1 change: 1 addition & 0 deletions lua/catppuccin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ local M = {
gitsigns = true,
markdown = true,
nvimtree = true,
rainbow_delimiters = true,
semantic_tokens = not is_vim,
telescope = {
enabled = true,
Expand Down
1 change: 1 addition & 0 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
---@field native_lsp CtpIntegrationNativeLsp
---@field navic CtpIntegrationNavic
---@field nvimtree boolean
---@field rainbow_delimiters boolean
---@field semantic_tokens boolean
---@field telescope CtpIntegrationTelescope
---@field treesitter boolean
Expand Down
3 changes: 3 additions & 0 deletions vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ globals:
O.integrations.ts_rainbow2:
type: bool
property: read-only
O.integrations.rainbow_delimiters:
type: bool
property: read-only

O.integrations.barbecue.dim_dirname:
type: bool
Expand Down

0 comments on commit c2ef282

Please sign in to comment.