mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
mini/git: init
This commit is contained in:
parent
173ea3f43c
commit
c490536230
7 changed files with 62 additions and 0 deletions
|
@ -16,5 +16,6 @@
|
|||
./extra
|
||||
./files
|
||||
./fuzzy
|
||||
./git
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/git/config.nix
Normal file
19
modules/plugins/mini/git/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.mini.git;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-git"];
|
||||
|
||||
pluginRC.mini-git = entryAnywhere ''
|
||||
require("mini.git").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/git/default.nix
Normal file
6
modules/plugins/mini/git/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/git/git.nix
Normal file
13
modules/plugins/mini/git/git.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.mini.git = {
|
||||
enable = mkEnableOption "mini.git";
|
||||
setupOpts = mkPluginSetupOption "mini.git" {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue