Skip to content

Commit 1d11841

Browse files
authored
Merge pull request #283 from projekt0n/feat/coc-explorer
feat: Add coc-explorer support
2 parents 609eb5c + 16277de commit 1d11841

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Included Airline themes Fixed #20
1313
- CI: Get and update primer primitives automatically #253
14+
- Support coc-explorer highlights
1415

1516
### Changes
1617

@@ -24,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2425
- #257 fixed
2526
- #261 fixed
2627
- #268 fixed
28+
- #274 fixed
29+
- #160 closed due to inactivity.
2730

2831
## [v1.0.0] - 19 May 2023
2932

lua/github-theme/config.lua

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ M.options = collect.deep_copy(defaults)
6060
M.module_names = {
6161
'cmp',
6262
'coc',
63+
'coc_explorer',
6364
'dapui',
6465
'diffchar',
6566
'dashboard',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-- https://github.com/weirongxu/coc-explorer
2+
3+
local M = {}
4+
5+
function M.get(spec, config, opts)
6+
return {
7+
CocExplorerNormalFloat = { link = 'NormalSB' },
8+
9+
CocExplorerFileRootName = { fg = spec.fg1, style = 'bold' },
10+
CocExplorerFileDirectory = { fg = spec.fg1, style = 'bold' },
11+
12+
CocExplorerGitPathChange_Internal = { fg = spec.palette.done.fg },
13+
CocExplorerGitAdded = { fg = spec.git.add },
14+
CocExplorerGitModified = { fg = spec.git.changed },
15+
CocExplorerGitContentChange = { fg = spec.git.changed },
16+
CocExplorerGitPathChange = { fg = spec.palette.done.fg },
17+
CocExplorerGitIgnored = { fg = spec.syntax.comment },
18+
CocExplorerGitUntracked = { fg = spec.syntax.comment },
19+
}
20+
end
21+
22+
return M

0 commit comments

Comments
 (0)