Add nvim-lazy submodule and add plugin configuration.
This commit is contained in:
parent
f545e30831
commit
b1ad0b623a
39 changed files with 1599 additions and 0 deletions
54
pkgsets/nvim/fugitive.nix
Normal file
54
pkgsets/nvim/fugitive.nix
Normal 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)"; }; }
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue