Skip to content

Commit 3d62e7b

Browse files
committed
feat: Support diffchar.vim plugin highlights
Fixed #216
1 parent 93d7354 commit 3d62e7b

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5151
- Support [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin highlights #221
5252
- Support [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) plugin highlights #221
5353
- Support [dap-ui](https://github.com/rcarriga/nvim-dap-ui) plugin highlights #207
54+
- Support [diffchar.vim](https://github.com/rickhowe/diffchar.vim) plugin highlights #216
5455

5556
### Issues Fix
5657

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ vim.cmd('colorscheme github_dark')
199199
[coc.nvim](https://github.com/neoclide/coc.nvim),
200200
[dap-ui](https://github.com/rcarriga/nvim-dap-ui),
201201
[dashboard-nvim](https://github.com/glepnir/dashboard-nvim),
202+
[diffchar.vim](https://github.com/rickhowe/diffchar.vim),
202203
[diffview.nvim](https://github.com/sindrets/diffview.nvim),
203204
[fidget.nvim](https://github.com/j-hui/fidget.nvim),
204205
[fsread.nvim](https://github.com/nullchilly/fsread.nvim),

lua/github-theme/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ M.module_names = {
5656
'cmp',
5757
'coc',
5858
'dapui',
59+
'diffchar',
5960
'dashboard',
6061
'diagnostic',
6162
'fidget',
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- https://github.com/rickhowe/diffchar.vim
2+
3+
local M = {}
4+
5+
function M.get(spec, config, opts)
6+
return {
7+
DiffAdd = { link = 'diffAdded' },
8+
DiffChange = { link = 'diffChanged' },
9+
DiffDelete = { link = 'diffRemoved' },
10+
DiffText = { fg = spec.fg1, bg = spec.bg2 },
11+
}
12+
end
13+
14+
return M

0 commit comments

Comments
 (0)