Skip to content

Commit

Permalink
feat: Add coc-explorer support
Browse files Browse the repository at this point in the history
Related to #274
  • Loading branch information
ful1e5 committed Jul 18, 2023
1 parent 609eb5c commit 16277de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions lua/github-theme/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ M.options = collect.deep_copy(defaults)
M.module_names = {
'cmp',
'coc',
'coc_explorer',
'dapui',
'diffchar',
'dashboard',
Expand Down
22 changes: 22 additions & 0 deletions lua/github-theme/group/modules/coc_explorer.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 16277de

Please sign in to comment.