mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-10 04:11:34 +00:00
git/neogit: module init
This commit is contained in:
parent
b485040933
commit
94908ffb0a
8 changed files with 83 additions and 3 deletions
17
modules/plugins/git/neogit/neogit.nix
Normal file
17
modules/plugins/git/neogit/neogit.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.binds) mkMappingOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue