diff --git a/CHANGELOG.md b/CHANGELOG.md index 55e7b5bd..919595f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 38327b08..20121807 100644 --- a/README.md +++ b/README.md @@ -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), diff --git a/lua/github-theme/config.lua b/lua/github-theme/config.lua index 3e905fca..1dd235a3 100644 --- a/lua/github-theme/config.lua +++ b/lua/github-theme/config.lua @@ -56,6 +56,7 @@ M.module_names = { 'cmp', 'coc', 'dapui', + 'diffchar', 'dashboard', 'diagnostic', 'fidget', diff --git a/lua/github-theme/group/modules/diffchar.lua b/lua/github-theme/group/modules/diffchar.lua new file mode 100644 index 00000000..f443e62c --- /dev/null +++ b/lua/github-theme/group/modules/diffchar.lua @@ -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