From 16277de0fc3abe2a62f3f6287e7f6572dc620d05 Mon Sep 17 00:00:00 2001 From: Abdulkaiz Khatri <24286590+ful1e5@users.noreply.github.com> Date: Tue, 18 Jul 2023 16:40:41 +0530 Subject: [PATCH] feat: Add coc-explorer support Related to #274 --- CHANGELOG.md | 3 +++ lua/github-theme/config.lua | 1 + .../group/modules/coc_explorer.lua | 22 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 lua/github-theme/group/modules/coc_explorer.lua diff --git a/CHANGELOG.md b/CHANGELOG.md index 2db5b7c9..3ff9f276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Included Airline themes Fixed #20 - CI: Get and update primer primitives automatically #253 +- Support coc-explorer highlights ### Changes @@ -24,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - #257 fixed - #261 fixed - #268 fixed +- #274 fixed +- #160 closed due to inactivity. ## [v1.0.0] - 19 May 2023 diff --git a/lua/github-theme/config.lua b/lua/github-theme/config.lua index cbcf666d..e6853678 100644 --- a/lua/github-theme/config.lua +++ b/lua/github-theme/config.lua @@ -60,6 +60,7 @@ M.options = collect.deep_copy(defaults) M.module_names = { 'cmp', 'coc', + 'coc_explorer', 'dapui', 'diffchar', 'dashboard', diff --git a/lua/github-theme/group/modules/coc_explorer.lua b/lua/github-theme/group/modules/coc_explorer.lua new file mode 100644 index 00000000..055a2146 --- /dev/null +++ b/lua/github-theme/group/modules/coc_explorer.lua @@ -0,0 +1,22 @@ +-- https://github.com/weirongxu/coc-explorer + +local M = {} + +function M.get(spec, config, opts) + return { + CocExplorerNormalFloat = { link = 'NormalSB' }, + + CocExplorerFileRootName = { fg = spec.fg1, style = 'bold' }, + CocExplorerFileDirectory = { fg = spec.fg1, style = 'bold' }, + + CocExplorerGitPathChange_Internal = { fg = spec.palette.done.fg }, + CocExplorerGitAdded = { fg = spec.git.add }, + CocExplorerGitModified = { fg = spec.git.changed }, + CocExplorerGitContentChange = { fg = spec.git.changed }, + CocExplorerGitPathChange = { fg = spec.palette.done.fg }, + CocExplorerGitIgnored = { fg = spec.syntax.comment }, + CocExplorerGitUntracked = { fg = spec.syntax.comment }, + } +end + +return M