mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 03:25:58 +01:00
23 lines
511 B
Nix
23 lines
511 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.utility.diffview-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = ["plenary-nvim"];
|
|
lazy.plugins = [
|
|
{
|
|
package = "diffview-nvim";
|
|
cmd = ["DiffviewClose" "DiffviewFileHistory" "DiffviewFocusFiles" "DiffviewLog" "DiffviewOpen" "DiffviewRefresh" "DiffviewToggleFiles"];
|
|
setupModule = "diffview";
|
|
inherit (cfg) setupOpts;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|