feat: add diffnav

This commit is contained in:
2026-07-07 14:32:48 +02:00
parent 7ea3256826
commit e133a7b10d
3 changed files with 27 additions and 11 deletions
+9
View File
@@ -0,0 +1,9 @@
{
formats,
}:
let
format = formats.yaml { };
in
format.generate "config.yaml" {
pager.diff = "diffnav";
}
Generated
+9 -9
View File
@@ -42,11 +42,11 @@
]
},
"locked": {
"lastModified": 1778716662,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"lastModified": 1782949081,
"narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e",
"type": "github"
},
"original": {
@@ -124,11 +124,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1781577229,
"narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
"lastModified": 1783224372,
"narHash": "sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU+K27sk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
"rev": "d407951447dcd00442e97087bf374aad70c04cea",
"type": "github"
},
"original": {
@@ -179,11 +179,11 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1782176672,
"narHash": "sha256-8gNmp6mdko4/ALHsiewq4t/I3OvX4nbjAIoz5uyn1p4=",
"lastModified": 1783349931,
"narHash": "sha256-aYE76ATiGBg7/cQ2dHASRq97WvNum4OOIPgZ8xIK0QI=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "91df3d9f91c2b6e4c07541903b9d7f80a5b857e1",
"rev": "4fd45857deecb90d2732c87e0315daa48505515e",
"type": "github"
},
"original": {
+9 -2
View File
@@ -1,4 +1,7 @@
{
bwrapperPresets,
callPackage,
diffnav,
fetchFromGitHub,
gdb,
gh,
@@ -8,6 +11,7 @@
lazygit,
lib,
luau-lsp,
mkBwrapper,
nixfmt,
nixvim,
nodejs,
@@ -20,8 +24,6 @@
vimPlugins,
vimUtils,
vscode-js-debug,
mkBwrapper,
bwrapperPresets,
avanteUrl ? null,
}:
@@ -692,6 +694,7 @@ nixvim.makeNixvim {
gdb
gh
gh-dash
diffnav
jq # js-i18n needs this
lazygit
luau-lsp
@@ -715,6 +718,10 @@ nixvim.makeNixvim {
})
];
env = {
GH_DASH_CONFIG = "${callPackage ./config/gh-dash.nix { }}";
};
# extraFiles = {
# "queries/rust/highlights.scm".text = ''
# ;; extends