mini/git: init

This commit is contained in:
LilleAila 2025-01-17 20:23:40 +01:00
parent 173ea3f43c
commit c490536230
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -70,6 +70,7 @@
- `mini.extra` - `mini.extra`
- `mini.files` - `mini.files`
- `mini.fuzzy` - `mini.fuzzy`
- `mini.git`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1192,6 +1192,22 @@
"type": "github" "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": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2404,6 +2420,7 @@
"plugin-mini-extra": "plugin-mini-extra", "plugin-mini-extra": "plugin-mini-extra",
"plugin-mini-files": "plugin-mini-files", "plugin-mini-files": "plugin-mini-files",
"plugin-mini-fuzzy": "plugin-mini-fuzzy", "plugin-mini-fuzzy": "plugin-mini-fuzzy",
"plugin-mini-git": "plugin-mini-git",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -825,5 +825,10 @@
url = "github:echasnovski/mini.fuzzy"; url = "github:echasnovski/mini.fuzzy";
flake = false; flake = false;
}; };
plugin-mini-git = {
url = "github:echasnovski/mini-git";
flake = false;
};
}; };
} }

View file

@ -16,5 +16,6 @@
./extra ./extra
./files ./files
./fuzzy ./fuzzy
./git
]; ];
} }

View 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})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./git.nix
./config.nix
];
}

View 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" {};
};
}