Skip to content

Commit

Permalink
feat(nvim-ts-rainbow2): add support for ts-rainbow2 (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Snake authored Feb 15, 2023
1 parent 15e558f commit 2ed26d9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Below is a list of supported plugins and their corresponding integration module.
| ------------------------------------------------------------------------------------- | ------------------- |
| [aerial.nvim](https://github.com/stevearc/aerial.nvim) | aerial |
| [barbar.nvim](https://github.com/romgrk/barbar.nvim) | barbar |
| [barbecue.nvim](https://github.com/utilyre/barbecue.nvim) | barbecue, Special |
| [barbecue.nvim](https://github.com/utilyre/barbecue.nvim) | barbecue, Special |
| [beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim) | beacon |
| [bufferline.nvim](https://github.com/akinsho/bufferline.nvim) | Special |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | dashboard |
Expand Down Expand Up @@ -352,6 +352,7 @@ Below is a list of supported plugins and their corresponding integration module.
| [nvim-treesitter-context](https://github.com/nvim-treesitter/nvim-treesitter-context) | treesitter_context |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | treesitter |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) | ts_rainbow |
| [nvim-ts-rainbow2](https://github.com/HiPhish/nvim-ts-rainbow2) | ts_rainbow2 |
| [overseer.nvim](https://github.com/stevearc/overseer.nvim) | overseer |
| [pounce.nvim](https://github.com/rlane/pounce.nvim) | pounce |
| [symbols-outline.nvim](https://github.com/simrat39/symbols-outline.nvim) | symbols_outline |
Expand Down Expand Up @@ -420,6 +421,7 @@ require("catppuccin").setup({
treesitter = true,
treesitter_context = false,
ts_rainbow = false,
ts_rainbow2 = false,
vim_sneak = false,
vimwiki = false,
which_key = false,
Expand Down
2 changes: 2 additions & 0 deletions doc/catppuccin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ module. (See Special integrations
│nvim-treesitter-context <https://github.com/nvim-treesitter/nvim-treesitter-context>│treesitter_context │
│nvim-treesitter <https://github.com/nvim-treesitter/nvim-treesitter> │treesitter │
│nvim-ts-rainbow <https://github.com/p00f/nvim-ts-rainbow> │ts_rainbow │
│nvim-ts-rainbow2 <https://github.com/HiPhish/nvim-ts-rainbow2> │ts_rainbow2 │
│overseer.nvim <https://github.com/stevearc/overseer.nvim> │overseer │
│pounce.nvim <https://github.com/rlane/pounce.nvim> │pounce │
│symbols-outline.nvim <https://github.com/simrat39/symbols-outline.nvim> │symbols_outline │
Expand Down Expand Up @@ -444,6 +445,7 @@ Click here to see an example config
treesitter = true,
treesitter_context = false,
ts_rainbow = false,
ts_rainbow2 = false,
vim_sneak = false,
vimwiki = false,
which_key = false,
Expand Down
15 changes: 15 additions & 0 deletions lua/catppuccin/groups/integrations/ts_rainbow2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
local M = {}

function M.get()
return {
TSRainbowRed = { fg = C.red },
TSRainbowYellow = { fg = C.yellow },
TSRainbowBlue = { fg = C.blue },
TSRainbowOrange = { fg = C.peach },
TSRainbowGreen = { fg = C.green },
TSRainbowViolet = { fg = C.mauve },
TSRainbowCyan = { 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 = {
telescope = true,
treesitter = not is_vim,
ts_rainbow = true,
ts_rainbow2 = true,
barbecue = {
dim_dirname = true,
},
Expand Down

0 comments on commit 2ed26d9

Please sign in to comment.