mini/misc: init

This commit is contained in:
LilleAila 2025-01-17 20:43:25 +01:00
parent c9d39cb758
commit 9a27dafe67
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -78,6 +78,7 @@
- `mini.jump`
- `mini.jump2d`
- `mini.map`
- `mini.misc`
[kaktu5](https://github.com/kaktu5):

View file

@ -1320,6 +1320,22 @@
"type": "github"
}
},
"plugin-mini-misc": {
"flake": false,
"locked": {
"lastModified": 1734103112,
"narHash": "sha256-qnYa4IZk14MGZArmVpn15l+P9cwtFWomBVxRuYHVyXc=",
"owner": "echasnovski",
"repo": "mini.misc",
"rev": "645fb9367c19bb485902e54e5451425981498601",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.misc",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2540,6 +2556,7 @@
"plugin-mini-jump": "plugin-mini-jump",
"plugin-mini-jump2d": "plugin-mini-jump2d",
"plugin-mini-map": "plugin-mini-map",
"plugin-mini-misc": "plugin-mini-misc",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -865,5 +865,10 @@
url = "github:echasnovski/mini.map";
flake = false;
};
plugin-mini-misc = {
url = "github:echasnovski/mini.misc";
flake = false;
};
};
}

View file

@ -24,5 +24,6 @@
./jump
./jump2d
./map
./misc
];
}

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.misc;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-misc"];
pluginRC.mini-misc = entryAnywhere ''
require("mini.misc").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./misc.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.misc = {
enable = mkEnableOption "mini.misc";
setupOpts = mkPluginSetupOption "mini.misc" {};
};
}