Compare commits

..

No commits in common. "48ac1956804a6a2dc6797b12dc59747e33c54bd9" and "d7de60603ff7533c30fe5e381fc8468590a6e3e3" have entirely different histories.

4 changed files with 11 additions and 24 deletions

View file

@ -114,7 +114,6 @@ isMaximal: {
filetree = { filetree = {
nvimTree = { nvimTree = {
enable = true; enable = true;
openOnSetup = false;
}; };
}; };

View file

@ -8,16 +8,9 @@
cfg = config.vim.utility.diffview-nvim; cfg = config.vim.utility.diffview-nvim;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim.startPlugins = [
startPlugins = ["plenary-nvim"]; "diffview-nvim"
lazy.plugins = [ "plenary-nvim"
{
package = "diffview-nvim";
cmd = ["DiffviewClose" "DiffviewFileHistory" "DiffviewFocusFiles" "DiffviewLog" "DiffviewOpen" "DiffviewRefresh" "DiffviewToggleFiles"];
setupModule = "diffview";
inherit (cfg) setupOpts;
}
]; ];
}; };
};
} }

View file

@ -1,9 +1,7 @@
{lib, ...}: let {lib, ...}: let
inherit (lib.options) mkEnableOption; inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in { in {
options.vim.utility.diffview-nvim = { options.vim.utility.diffview-nvim = {
enable = mkEnableOption "diffview-nvim: cycle through diffs for all modified files for any git rev"; enable = mkEnableOption "diffview-nvim: cycle through diffs for all modified files for any git rev";
setupOpts = mkPluginSetupOption "Fidget" {};
}; };
} }

View file

@ -4,19 +4,16 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.fidget-nvim; cfg = config.vim.visuals.fidget-nvim;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim.lazy = { vim.startPlugins = ["fidget-nvim"];
plugins = [
{ vim.pluginRC.fidget-nvim = entryAnywhere ''
package = "fidget-nvim"; require'fidget'.setup(${toLuaObject cfg.setupOpts})
setupModule = "fidget"; '';
event = "LspAttach";
inherit (cfg) setupOpts;
}
];
};
}; };
} }