mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
Compare commits
No commits in common. "48ac1956804a6a2dc6797b12dc59747e33c54bd9" and "d7de60603ff7533c30fe5e381fc8468590a6e3e3" have entirely different histories.
48ac195680
...
d7de60603f
4 changed files with 11 additions and 24 deletions
|
@ -114,7 +114,6 @@ isMaximal: {
|
||||||
filetree = {
|
filetree = {
|
||||||
nvimTree = {
|
nvimTree = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openOnSetup = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" {};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue