{ 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 = "gm"; cmd = "Neogit"; 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 = "gs"; cmd = "Git"; opts = { desc = "Open fugitive (git status)"; }; } # { bind = "ga"; cmd = "Git"; opts = { desc = "Open fugitive (git status)"; }; } ]; } ]; }