Skip to content

Commit 07d790f

Browse files
authored
Merge pull request #197 from zenbones-theme/improve-diff
fix: improve diff
2 parents 8e4d87d + 6c01e4c commit 07d790f

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ or try the [built-in collection](#usage).
2727

2828
## Installation
2929

30-
Example installation using packer:
30+
Example installation using lazy.nvim:
3131

3232
```lua
33-
use {
33+
{
3434
"zenbones-theme/zenbones.nvim",
3535
-- Optionally install Lush. Allows for more configuration or extending the colorscheme
3636
-- If you don't want to install lush, make sure to set g:zenbones_compat = 1
3737
-- In Vim, compat mode is turned on as Lush only works in Neovim.
38-
requires = "rktjmp/lush.nvim"
38+
dependencies = "rktjmp/lush.nvim",
39+
lazy = false,
40+
priority = 1000,
41+
opts = {},
3942
}
4043
```
4144

@@ -140,5 +143,5 @@ There are more similar
140143

141144
## Git mirrors
142145

143-
- [Gitlab](https://gitlab.com/mcchris/zenbones.nvim)
144-
- [Codeberg](https://codeberg.org/mcchris/zenbones.nvim)
146+
- [Gitlab](https://gitlab.com/mcchris/zenbones.nvim)
147+
- [Codeberg](https://codeberg.org/mcchris/zenbones.nvim)

lua/zenbones/specs/dark.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ local function generate(p, opt)
298298
sym "@markup.list.checked" { sym "@markup.list" },
299299
sym "@markup.list.unchecked" { sym "@markup.list" },
300300

301-
sym "@diff.plus" { fg = p.leaf },
302-
sym "@diff.minus" { fg = p.rose },
303-
sym "@diff.delta" { fg = p.water },
301+
sym "@diff.plus" { DiffAdd },
302+
sym "@diff.minus" { DiffDelete },
303+
sym "@diff.delta" { DiffChange },
304304

305305
sym "@tag" { Special },
306306
sym "@tag.attribute" { sym "@property" },
@@ -367,9 +367,9 @@ local function generate(p, opt)
367367
sym "@lsp.typemod.variable.static" { sym "@constant" },
368368

369369
-- Syntax
370-
diffAdded { fg = p.leaf },
371-
diffRemoved { fg = p.rose },
372-
diffChanged { fg = p.water },
370+
diffAdded { DiffAdd },
371+
diffRemoved { DiffDelete },
372+
diffChanged { DiffChange },
373373
diffOldFile { fg = p.rose, gui = "italic" },
374374
diffNewFile { fg = p.leaf, gui = "italic" },
375375
diffFile { fg = p.wood, gui = "bold" },

lua/zenbones/specs/light.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ local function generate(p, opt)
298298
sym "@markup.list.checked" { sym "@markup.list" },
299299
sym "@markup.list.unchecked" { sym "@markup.list" },
300300

301-
sym "@diff.plus" { fg = p.leaf },
302-
sym "@diff.minus" { fg = p.rose },
303-
sym "@diff.delta" { fg = p.water },
301+
sym "@diff.plus" { DiffAdd },
302+
sym "@diff.minus" { DiffDelete },
303+
sym "@diff.delta" { DiffChange },
304304

305305
sym "@tag" { Special },
306306
sym "@tag.attribute" { sym "@property" },
@@ -367,9 +367,9 @@ local function generate(p, opt)
367367
sym "@lsp.typemod.variable.static" { sym "@constant" },
368368

369369
-- Syntax
370-
diffAdded { fg = p.leaf },
371-
diffRemoved { fg = p.rose },
372-
diffChanged { fg = p.water },
370+
diffAdded { DiffAdd },
371+
diffRemoved { DiffDelete },
372+
diffChanged { DiffChange },
373373
diffOldFile { fg = p.rose, gui = "italic" },
374374
diffNewFile { fg = p.leaf, gui = "italic" },
375375
diffFile { fg = p.wood, gui = "bold" },

0 commit comments

Comments
 (0)