2023-03-01 10:08:24 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 01:50:27 +01:00
|
|
|
}: let
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.modules) mkIf;
|
2023-11-07 01:50:27 +01:00
|
|
|
|
2023-03-01 10:08:24 +01:00
|
|
|
cfg = config.vim.utility.diffview-nvim;
|
|
|
|
in {
|
2024-07-08 23:57:58 +02:00
|
|
|
config = mkIf cfg.enable {
|
2024-11-04 16:50:50 +01:00
|
|
|
vim = {
|
|
|
|
startPlugins = ["plenary-nvim"];
|
|
|
|
lazy.plugins.diffview-nvim = {
|
|
|
|
package = "diffview-nvim";
|
|
|
|
cmd = ["DiffviewClose" "DiffviewFileHistory" "DiffviewFocusFiles" "DiffviewLog" "DiffviewOpen" "DiffviewRefresh" "DiffviewToggleFiles"];
|
|
|
|
setupModule = "diffview";
|
|
|
|
inherit (cfg) setupOpts;
|
|
|
|
};
|
|
|
|
};
|
2023-03-01 10:08:24 +01:00
|
|
|
};
|
|
|
|
}
|