nvf/modules/plugins/utility/diffview/config.nix

22 lines
497 B
Nix
Raw Normal View History

2023-03-01 09:08:24 +00:00
{
config,
lib,
...
}: let
2024-03-24 00:14:39 +00:00
inherit (lib.modules) mkIf;
2023-03-01 09:08:24 +00:00
cfg = config.vim.utility.diffview-nvim;
in {
config = mkIf cfg.enable {
2024-09-30 19:59:05 +00:00
vim = {
startPlugins = ["plenary-nvim"];
2024-10-17 15:17:18 +00:00
lazy.plugins.diffview-nvim = {
package = "diffview-nvim";
cmd = ["DiffviewClose" "DiffviewFileHistory" "DiffviewFocusFiles" "DiffviewLog" "DiffviewOpen" "DiffviewRefresh" "DiffviewToggleFiles"];
setupModule = "diffview";
inherit (cfg) setupOpts;
};
2024-09-30 19:59:05 +00:00
};
2023-03-01 09:08:24 +00:00
};
}