From c2ef282b725447c1acd5aa0bb402661ceaa52b5c Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 5 Jul 2023 08:01:14 -0400 Subject: [PATCH] feat(integrations): add rainbow_delimiters.nvim support --- README.md | 14 ++++++++++++++ doc/catppuccin.txt | 4 ++++ .../groups/integrations/rainbow_delimiters.lua | 15 +++++++++++++++ lua/catppuccin/init.lua | 1 + lua/catppuccin/types.lua | 1 + vim.yml | 3 +++ 6 files changed, 38 insertions(+) create mode 100644 lua/catppuccin/groups/integrations/rainbow_delimiters.lua diff --git a/README.md b/README.md index f9cc6e5cc..9276a35e8 100644 --- a/README.md +++ b/README.md @@ -1118,6 +1118,20 @@ pounce = false + + + + rainbow-delimiters.nvim + + +```lua +rainbow_delimiters = true +``` + + + + + diff --git a/doc/catppuccin.txt b/doc/catppuccin.txt index 3a2f41b85..5daf919e0 100644 --- a/doc/catppuccin.txt +++ b/doc/catppuccin.txt @@ -701,6 +701,10 @@ pounce.nvim>lua pounce = false < +rainbow-delimiters.nvim>lua + rainbow_delimiters = true +< + symbols-outline.nvim>lua symbols_outline = false < diff --git a/lua/catppuccin/groups/integrations/rainbow_delimiters.lua b/lua/catppuccin/groups/integrations/rainbow_delimiters.lua new file mode 100644 index 000000000..95defccda --- /dev/null +++ b/lua/catppuccin/groups/integrations/rainbow_delimiters.lua @@ -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 diff --git a/lua/catppuccin/init.lua b/lua/catppuccin/init.lua index 3dbdb227a..ed82b522d 100644 --- a/lua/catppuccin/init.lua +++ b/lua/catppuccin/init.lua @@ -41,6 +41,7 @@ local M = { gitsigns = true, markdown = true, nvimtree = true, + rainbow_delimiters = true, semantic_tokens = not is_vim, telescope = { enabled = true, diff --git a/lua/catppuccin/types.lua b/lua/catppuccin/types.lua index a7d92f256..8dc91550c 100644 --- a/lua/catppuccin/types.lua +++ b/lua/catppuccin/types.lua @@ -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 diff --git a/vim.yml b/vim.yml index dcb4d933f..5e1ed3822 100644 --- a/vim.yml +++ b/vim.yml @@ -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