Add nvim-lazy submodule and add plugin configuration.

This commit is contained in:
Kevin Baensch 2024-12-01 16:54:44 +01:00
parent f545e30831
commit b1ad0b623a
Signed by: derped
GPG key ID: C0F1D326C7626543
39 changed files with 1599 additions and 0 deletions

54
pkgsets/nvim/fugitive.nix Normal file
View file

@ -0,0 +1,54 @@
{
lib,
config,
...
}:
lib.mkIf (lib.elem "nvim::fugitive" config.machine.pkgs) {
programs.nvim-lazy.lazyPlugins = [
{
# short = "NeogitOrg/neogit";
lazy = true;
dir = vPlug: vPlug.neogit;
dependencies = (
vPlug: with vPlug; [
# plenary-nvim
"nvim-lua/plenary.nvim"
diffview-nvim
telescope-nvim
]
);
cmd = [ "Neogit" ];
keys = [
{
bind = "<leader>gm";
cmd = "<Cmd>Neogit<CR>";
opts = {
desc = "Open Neogit.";
};
}
];
config = true;
}
{
lazy = true;
dir = vPlug: vPlug.diffview-nvim;
}
{
enabled = true;
lazy = true;
dir = vPlug: vPlug.fugitive;
cmd = [ "Git" ];
keys = [
{
bind = "<leader>gs";
cmd = "<Cmd>Git<CR>";
opts = {
desc = "Open fugitive (git status)";
};
}
# { bind = "<leader>ga"; cmd = "<Cmd>Git<CR>"; opts = { desc = "Open fugitive (git status)"; }; }
];
}
];
}