From 8f4e7e8dafa7c3dae8f2cc77263fae09f38148a0 Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Thu, 2 Sep 2021 11:47:40 -0500 Subject: [PATCH] feat (#26): added nvim-ts-rainbow integration --- lua/catppuccino/config.lua | 1 + lua/catppuccino/core/integrations/ts_rainbow.lua | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 lua/catppuccino/core/integrations/ts_rainbow.lua 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