diff --git a/README.md b/README.md index 04fa5ba..e063ed3 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ integrations = { information = "underline", }, }, + coc_nvim = false, lsp_trouble = false, cmp = true, lsp_saga = false, diff --git a/lua/catppuccin/config.lua b/lua/catppuccin/config.lua index db44af1..3ae05e9 100644 --- a/lua/catppuccin/config.lua +++ b/lua/catppuccin/config.lua @@ -35,6 +35,7 @@ config.options = { information = "underline", }, }, + coc_nvim = false, lsp_trouble = false, cmp = true, lsp_saga = false, diff --git a/lua/catppuccin/core/integrations/coc_nvim.lua b/lua/catppuccin/core/integrations/coc_nvim.lua new file mode 100644 index 0000000..b04563f --- /dev/null +++ b/lua/catppuccin/core/integrations/coc_nvim.lua @@ -0,0 +1,27 @@ +local M = {} + +local util = require("catppuccin.utils.util") + +function M.get(cp) + local error = cp.red + local warning = cp.yellow + local info = cp.sky + local hint = cp.teal + + return { + -- These groups are for the coc.nvim, the documentation is here (https://github.com/neoclide/coc.nvim/blob/master/doc/coc.txt#L2365). + CocErrorHighlight = { fg = error }, + CocErrorSign = { fg = error }, + CocErrorVirtualText = { fg = error }, + CocHintHighlight = { fg = hint }, + CocHintSign = { fg = hint }, + CocHintVirtualText = { fg = hint }, + CocInfoHighlight = { fg = info }, + CocInfoSign = { fg = info }, + CocInfoVirtualText = { fg = info }, + CocWarningHighlight = { fg = warning }, + CocWarningSign = { fg = warning }, + } +end + +return M