55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
|
{
|
||
|
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)"; }; }
|
||
|
];
|
||
|
}
|
||
|
];
|
||
|
}
|