-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: add 'gruvbox-nvim-old-diff'
I dislike the new style of diff [1]. Thankfully somebody wrote a patch to configure it [2] (though not completely to my liking, so the local patch here is a bit different). I used it as a basis, but made it always revert, rather than configurable. [1]: ellisonleao/gruvbox.nvim#290 [2]: ellisonleao/gruvbox.nvim#291
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
self: prev: | ||
{ | ||
vimPlugins = prev.vimPlugins.extend (self.callPackage ./generated.nix { }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ vimUtils, fetchFromGitHub }: | ||
|
||
_final: _prev: { | ||
gruvbox-nvim = vimUtils.buildVimPlugin { | ||
pname = "gruvbox.nvim"; | ||
version = "2023-10-07"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ellisonleao"; | ||
repo = "gruvbox.nvim"; | ||
rev = "477c62493c82684ed510c4f70eaf83802e398898"; | ||
sha256 = "0250c24c6n6yri48l288irdawhqs16qna3y74rdkgjd2jvh66vdm"; | ||
}; | ||
|
||
patches = [ | ||
# Inspired by https://github.com/ellisonleao/gruvbox.nvim/pull/291 | ||
./old-colours.patch | ||
]; | ||
|
||
meta = { | ||
homepage = "https://github.com/ellisonleao/gruvbox.nvim/"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 416b3c9c5e783d173ac0fd5310a76c1b144b92c1 Mon Sep 17 00:00:00 2001 | ||
From: eeeXun <[email protected]> | ||
Date: Thu, 19 Oct 2023 02:34:12 +0800 | ||
Subject: feat: make invert_diff configurable | ||
|
||
--- | ||
README.md | 3 ++- | ||
lua/gruvbox.lua | 7 ++++--- | ||
2 files changed, 6 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/lua/gruvbox.lua b/lua/gruvbox.lua | ||
index ceba0735..a319fc6a 100644 | ||
--- a/lua/gruvbox.lua | ||
+++ b/lua/gruvbox.lua | ||
@@ -360,9 +361,9 @@ local function get_groups() | ||
PmenuSel = { fg = colors.bg2, bg = colors.blue, bold = config.bold }, | ||
PmenuSbar = { bg = colors.bg2 }, | ||
PmenuThumb = { bg = colors.bg4 }, | ||
- DiffDelete = { bg = colors.dark_red }, | ||
- DiffAdd = { bg = colors.dark_green }, | ||
- DiffChange = { bg = colors.dark_aqua }, | ||
- DiffText = { bg = colors.yellow, fg = colors.bg0 }, | ||
+ DiffDelete = { fg = colors.bg0, bg = colors.red, reverse = config.inverse }, | ||
+ DiffAdd = { fg = colors.bg0, bg = colors.green, reverse = config.inverse }, | ||
+ DiffChange = { fg = colors.bg0, bg = colors.aqua, reverse = config.inverse }, | ||
+ DiffText = { bg = colors.yellow, fg = colors.bg0, reverse = config.inverse }, | ||
SpellCap = { link = "GruvboxBlueUnderline" }, | ||
SpellBad = { link = "GruvboxRedUnderline" }, |