mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
plugins/git: add vim-fugitive; modularize
This commit is contained in:
parent
165c3369aa
commit
f78696f13b
12 changed files with 206 additions and 130 deletions
13
modules/plugins/git/vim-fugitive/config.nix
Normal file
13
modules/plugins/git/vim-fugitive/config.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.git.vim-fugitive;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = ["vim-fugitive"];
|
||||
};
|
||||
}
|
6
modules/plugins/git/vim-fugitive/default.nix
Normal file
6
modules/plugins/git/vim-fugitive/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./vim-fugitive.nix
|
||||
];
|
||||
}
|
14
modules/plugins/git/vim-fugitive/vim-fugitive.nix
Normal file
14
modules/plugins/git/vim-fugitive/vim-fugitive.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.git.vim-fugitive = {
|
||||
enable = mkEnableOption "vim-fugitive" // {default = config.vim.git.enable;};
|
||||
|
||||
# TODO: sane default keybinds for vim-fugitive
|
||||
# mappings = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue