nvim: move to services we do not specify a pkgset
This commit is contained in:
parent
465a6b19d1
commit
11b98d8146
45 changed files with 38 additions and 37 deletions
52
services/nvim/fugitive.nix
Normal file
52
services/nvim/fugitive.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::fugitive" config.machine.pkgs) {
|
||||
programs.nvim-lazy.lazyPlugins = [
|
||||
{
|
||||
lazy = true;
|
||||
dir = vPlug: vPlug.neogit;
|
||||
dependencies = (
|
||||
vPlug: with vPlug; [
|
||||
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