diff --git a/README.md b/README.md index d98c91e..8104e32 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ require("onedarkpro").setup({ plugins = { -- Override which plugin highlight groups are loaded aerial = true, barbar = true, + codecompanion = true, copilot = true, dashboard = true, flash_nvim = true, @@ -702,6 +703,7 @@ The theme supports the following plugins: - [aerial.nvim](https://github.com/stevearc/aerial.nvim) (`aerial`) - [barbar.nvim](https://github.com/romgrk/barbar.nvim) (`barbar`) +- [CodeCompanion.nvim](https://github.com/olimorris/codecompanion.nvim) (`codecompanion`) - [Copilot.vim](https://github.com/github/copilot.vim) (`copilot`) - [Dashboard](https://github.com/glepnir/dashboard-nvim) (`dashboard`) - [diffview.nvim](https://github.com/sindrets/diffview.nvim) (`diffview`) diff --git a/doc/onedarkpro.nvim.txt b/doc/onedarkpro.nvim.txt index b32c57c..610690a 100644 --- a/doc/onedarkpro.nvim.txt +++ b/doc/onedarkpro.nvim.txt @@ -147,6 +147,7 @@ Click to see the default configuration ~ plugins = { -- Override which plugin highlight groups are loaded aerial = true, barbar = true, + codecompanion = true, copilot = true, dashboard = true, flash_nvim = true, @@ -776,13 +777,14 @@ The theme supports the following plugins: - aerial.nvim (`aerial`) - barbar.nvim (`barbar`) +- CodeCompanion.nvim (`codecompanion`) - Copilot.vim (`copilot`) - Dashboard (`dashboard`) - diffview.nvim (`diffview`) - flash.nvim (`flash.nvim`) - gitsigns.nvim (`gitsigns`) - Hop.nvim (`hop`) -- Indent Blankline (`indentline`) +- Indent Blankline (`indentline`) - leap.nvim (`leap`) - lspsaga.nvim (`lsp_saga`) - LSP Semantic tokens (`lsp_semantic_tokens`) diff --git a/lua/onedarkpro/config.lua b/lua/onedarkpro/config.lua index 80a05c4..d462665 100644 --- a/lua/onedarkpro/config.lua +++ b/lua/onedarkpro/config.lua @@ -50,6 +50,7 @@ local defaults = { plugins = { -- Enable/disable specific plugins aerial = true, barbar = true, + codecompanion = true, copilot = true, dashboard = true, diffview = true, diff --git a/lua/onedarkpro/highlights/plugins/codecompanion.lua b/lua/onedarkpro/highlights/plugins/codecompanion.lua new file mode 100644 index 0000000..871f6d6 --- /dev/null +++ b/lua/onedarkpro/highlights/plugins/codecompanion.lua @@ -0,0 +1,17 @@ +local M = {} + +---Get the highlight groups for the plugin +---@param theme table +---@return table +function M.groups(theme) + local config = require("onedarkpro.config").config + + return { + CodeCompanionChatHeader = { fg = theme.palette.fg, bold = true }, + CodeCompanionChatSeparator = { fg = theme.palette.gray }, + CodeCompanionChatTool = { fg = theme.palette.bg, bg = theme.palette.green }, + CodeCompanionChatVariable = { fg = theme.palette.bg, bg = theme.palette.blue }, + } +end + +return M