diff --git a/lua/catppuccino/config.lua b/lua/catppuccino/config.lua index 4c53012..ae80379 100644 --- a/lua/catppuccino/config.lua +++ b/lua/catppuccino/config.lua @@ -42,6 +42,7 @@ config.options = { bufferline = false, markdown = false, lightspeed = false, + ts_rainbow = false, }, } diff --git a/lua/catppuccino/core/integrations/ts_rainbow.lua b/lua/catppuccino/core/integrations/ts_rainbow.lua new file mode 100644 index 0000000..fd75678 --- /dev/null +++ b/lua/catppuccino/core/integrations/ts_rainbow.lua @@ -0,0 +1,15 @@ +local M = {} + +function M.get(cpt) + return { + rainbowcol1 = {bg = cpt.bg, fg = cpt.red}, + rainbowcol2 = {bg = cpt.bg, fg = cpt.green}, + rainbowcol3 = {bg = cpt.bg, fg = cpt.yellow}, + rainbowcol4 = {bg = cpt.bg, fg = cpt.blue}, + rainbowcol5 = {bg = cpt.bg, fg = cpt.magenta}, + rainbowcol6 = {bg = cpt.bg, fg = cpt.cyan}, + rainbowcol7 = {bg = cpt.bg, fg = cpt.white}, + } +end + +return M