Merge pull request #197 from zenbones-theme/improve-diff

fix: improve diff
This commit is contained in:
Michael Chris Lopez
2024-08-24 14:30:19 +02:00
committed by GitHub
3 changed files with 20 additions and 17 deletions

View File

@@ -27,15 +27,18 @@ or try the [built-in collection](#usage).
## Installation ## Installation
Example installation using packer: Example installation using lazy.nvim:
```lua ```lua
use { {
"zenbones-theme/zenbones.nvim", "zenbones-theme/zenbones.nvim",
-- Optionally install Lush. Allows for more configuration or extending the colorscheme -- Optionally install Lush. Allows for more configuration or extending the colorscheme
-- If you don't want to install lush, make sure to set g:zenbones_compat = 1 -- If you don't want to install lush, make sure to set g:zenbones_compat = 1
-- In Vim, compat mode is turned on as Lush only works in Neovim. -- In Vim, compat mode is turned on as Lush only works in Neovim.
requires = "rktjmp/lush.nvim" dependencies = "rktjmp/lush.nvim",
lazy = false,
priority = 1000,
opts = {},
} }
``` ```
@@ -140,5 +143,5 @@ There are more similar
## Git mirrors ## Git mirrors
- [Gitlab](https://gitlab.com/mcchris/zenbones.nvim) - [Gitlab](https://gitlab.com/mcchris/zenbones.nvim)
- [Codeberg](https://codeberg.org/mcchris/zenbones.nvim) - [Codeberg](https://codeberg.org/mcchris/zenbones.nvim)

View File

@@ -298,9 +298,9 @@ local function generate(p, opt)
sym "@markup.list.checked" { sym "@markup.list" }, sym "@markup.list.checked" { sym "@markup.list" },
sym "@markup.list.unchecked" { sym "@markup.list" }, sym "@markup.list.unchecked" { sym "@markup.list" },
sym "@diff.plus" { fg = p.leaf }, sym "@diff.plus" { DiffAdd },
sym "@diff.minus" { fg = p.rose }, sym "@diff.minus" { DiffDelete },
sym "@diff.delta" { fg = p.water }, sym "@diff.delta" { DiffChange },
sym "@tag" { Special }, sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" }, sym "@tag.attribute" { sym "@property" },
@@ -367,9 +367,9 @@ local function generate(p, opt)
sym "@lsp.typemod.variable.static" { sym "@constant" }, sym "@lsp.typemod.variable.static" { sym "@constant" },
-- Syntax -- Syntax
diffAdded { fg = p.leaf }, diffAdded { DiffAdd },
diffRemoved { fg = p.rose }, diffRemoved { DiffDelete },
diffChanged { fg = p.water }, diffChanged { DiffChange },
diffOldFile { fg = p.rose, gui = "italic" }, diffOldFile { fg = p.rose, gui = "italic" },
diffNewFile { fg = p.leaf, gui = "italic" }, diffNewFile { fg = p.leaf, gui = "italic" },
diffFile { fg = p.wood, gui = "bold" }, diffFile { fg = p.wood, gui = "bold" },

View File

@@ -298,9 +298,9 @@ local function generate(p, opt)
sym "@markup.list.checked" { sym "@markup.list" }, sym "@markup.list.checked" { sym "@markup.list" },
sym "@markup.list.unchecked" { sym "@markup.list" }, sym "@markup.list.unchecked" { sym "@markup.list" },
sym "@diff.plus" { fg = p.leaf }, sym "@diff.plus" { DiffAdd },
sym "@diff.minus" { fg = p.rose }, sym "@diff.minus" { DiffDelete },
sym "@diff.delta" { fg = p.water }, sym "@diff.delta" { DiffChange },
sym "@tag" { Special }, sym "@tag" { Special },
sym "@tag.attribute" { sym "@property" }, sym "@tag.attribute" { sym "@property" },
@@ -367,9 +367,9 @@ local function generate(p, opt)
sym "@lsp.typemod.variable.static" { sym "@constant" }, sym "@lsp.typemod.variable.static" { sym "@constant" },
-- Syntax -- Syntax
diffAdded { fg = p.leaf }, diffAdded { DiffAdd },
diffRemoved { fg = p.rose }, diffRemoved { DiffDelete },
diffChanged { fg = p.water }, diffChanged { DiffChange },
diffOldFile { fg = p.rose, gui = "italic" }, diffOldFile { fg = p.rose, gui = "italic" },
diffNewFile { fg = p.leaf, gui = "italic" }, diffNewFile { fg = p.leaf, gui = "italic" },
diffFile { fg = p.wood, gui = "bold" }, diffFile { fg = p.wood, gui = "bold" },