mini/move: init

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

View file

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

View file

@ -1336,6 +1336,22 @@
"type": "github"
}
},
"plugin-mini-move": {
"flake": false,
"locked": {
"lastModified": 1723711319,
"narHash": "sha256-nX0eAlhMnKhAftgM6qeHUuawagumLQMPKDkqZNPLljg=",
"owner": "echasnovski",
"repo": "mini.move",
"rev": "4caa1c212f5ca3d1633d21cfb184808090ed74b1",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.move",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2557,6 +2573,7 @@
"plugin-mini-jump2d": "plugin-mini-jump2d",
"plugin-mini-map": "plugin-mini-map",
"plugin-mini-misc": "plugin-mini-misc",
"plugin-mini-move": "plugin-mini-move",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

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

View file

@ -25,5 +25,6 @@
./jump2d
./map
./misc
./move
];
}

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

View file

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