mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/git: init
This commit is contained in:
parent
173ea3f43c
commit
c490536230
7 changed files with 62 additions and 0 deletions
|
@ -70,6 +70,7 @@
|
|||
- `mini.extra`
|
||||
- `mini.files`
|
||||
- `mini.fuzzy`
|
||||
- `mini.git`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1192,6 +1192,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-mini-git": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1736535710,
|
||||
"narHash": "sha256-rXuKopyZBCBbpKuytCdm8keruSNK1ohk2NdeZv1wifI=",
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini-git",
|
||||
"rev": "fc13dde6cfe87cf25a4fd1ee177c0d157468436b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini-git",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-minimap-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2404,6 +2420,7 @@
|
|||
"plugin-mini-extra": "plugin-mini-extra",
|
||||
"plugin-mini-files": "plugin-mini-files",
|
||||
"plugin-mini-fuzzy": "plugin-mini-fuzzy",
|
||||
"plugin-mini-git": "plugin-mini-git",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -825,5 +825,10 @@
|
|||
url = "github:echasnovski/mini.fuzzy";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-git = {
|
||||
url = "github:echasnovski/mini-git";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue