feat(nvim): add hunk.nvim plugin
Some checks failed
/ check (push) Failing after 9s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Has been skipped
/ build-vm (push) Has been skipped
/ report-size (push) Has been skipped

This should be a better diff editor for `jj`
This commit is contained in:
Jalil David Salamé Messina 2025-05-06 23:14:41 +02:00
parent c0ea237330
commit 3229597138
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -2,10 +2,11 @@
lib,
pkgs,
config,
helpers,
...
}:
let
helpers = if lib.hasAttrByPath [ "lib" "nixvim" ] config then config.lib.nixvim else lib.nixvim;
inherit (helpers) enableExceptInTests;
inherit (lib.trivial) const;
cfg = config.jhome.nvim;
@ -138,7 +139,7 @@ in
{
extraPackages = [ (pkgs.python3.withPackages (p: [ p.jupytext ])) ];
plugins = {
image.enable = enableExceptInTests;
image.enable = lib.mkForce enableExceptInTests;
jupytext = {
enable = true;
settings.custom_language_formatting.python = {
@ -174,6 +175,7 @@ in
mode = "virtualtext";
};
};
hunk.enable = true;
otter.enable = true;
};
}