mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 05:45:58 +01:00
diffview: lazy load
This commit is contained in:
parent
127ae0200d
commit
a9ce2fe101
2 changed files with 13 additions and 4 deletions
|
@ -8,9 +8,16 @@
|
|||
cfg = config.vim.utility.diffview-nvim;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = [
|
||||
"diffview-nvim"
|
||||
"plenary-nvim"
|
||||
];
|
||||
vim = {
|
||||
startPlugins = ["plenary-nvim"];
|
||||
lazy.plugins = [
|
||||
{
|
||||
package = "diffview-nvim";
|
||||
cmd = ["DiffviewClose" "DiffviewFileHistory" "DiffviewFocusFiles" "DiffviewLog" "DiffviewOpen" "DiffviewRefresh" "DiffviewToggleFiles"];
|
||||
setupModule = "diffview";
|
||||
inherit (cfg) setupOpts;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.utility.diffview-nvim = {
|
||||
enable = mkEnableOption "diffview-nvim: cycle through diffs for all modified files for any git rev";
|
||||
setupOpts = mkPluginSetupOption "Fidget" {};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue