Skip to content

Commit

Permalink
feat: Support diffchar.vim plugin highlights
Browse files Browse the repository at this point in the history
Fixed #216
  • Loading branch information
ful1e5 committed May 8, 2023
1 parent 93d7354 commit 3d62e7b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin highlights #221
- Support [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) plugin highlights #221
- Support [dap-ui](https://github.com/rcarriga/nvim-dap-ui) plugin highlights #207
- Support [diffchar.vim](https://github.com/rickhowe/diffchar.vim) plugin highlights #216

### Issues Fix

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ vim.cmd('colorscheme github_dark')
[coc.nvim](https://github.com/neoclide/coc.nvim),
[dap-ui](https://github.com/rcarriga/nvim-dap-ui),
[dashboard-nvim](https://github.com/glepnir/dashboard-nvim),
[diffchar.vim](https://github.com/rickhowe/diffchar.vim),
[diffview.nvim](https://github.com/sindrets/diffview.nvim),
[fidget.nvim](https://github.com/j-hui/fidget.nvim),
[fsread.nvim](https://github.com/nullchilly/fsread.nvim),
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 @@ -56,6 +56,7 @@ M.module_names = {
'cmp',
'coc',
'dapui',
'diffchar',
'dashboard',
'diagnostic',
'fidget',
Expand Down
14 changes: 14 additions & 0 deletions lua/github-theme/group/modules/diffchar.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- https://github.com/rickhowe/diffchar.vim

local M = {}

function M.get(spec, config, opts)
return {
DiffAdd = { link = 'diffAdded' },
DiffChange = { link = 'diffChanged' },
DiffDelete = { link = 'diffRemoved' },
DiffText = { fg = spec.fg1, bg = spec.bg2 },
}
end

return M

0 comments on commit 3d62e7b

Please sign in to comment.