mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-13 05:43:50 +00:00
21 lines
619 B
Nix
21 lines
619 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.options) mkEnableOption;
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
inherit (config.vim.lib) mkMappingOption;
|
|
in {
|
|
options.vim.git.neogit = {
|
|
enable = mkEnableOption "An Interactive and powerful Git interface [Neogit]";
|
|
setupOpts = mkPluginSetupOption "neogit" {};
|
|
|
|
mappings = {
|
|
open = mkMappingOption "Git Status [Neogit]" "<leader>gs";
|
|
commit = mkMappingOption "Git Commit [Neogit]" "<leader>gc";
|
|
pull = mkMappingOption "Git pull [Neogit]" "<leader>gp";
|
|
push = mkMappingOption "Git push [Neogit]" "<leader>gP";
|
|
};
|
|
};
|
|
}
|