mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/move: init
This commit is contained in:
parent
9a27dafe67
commit
6060ae4182
7 changed files with 62 additions and 0 deletions
|
@ -79,6 +79,7 @@
|
|||
- `mini.jump2d`
|
||||
- `mini.map`
|
||||
- `mini.misc`
|
||||
- `mini.move`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -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",
|
||||
|
|
|
@ -870,5 +870,10 @@
|
|||
url = "github:echasnovski/mini.misc";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-move = {
|
||||
url = "github:echasnovski/mini.move";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -25,5 +25,6 @@
|
|||
./jump2d
|
||||
./map
|
||||
./misc
|
||||
./move
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/move/config.nix
Normal file
19
modules/plugins/mini/move/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.move;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-move"];
|
||||
|
||||
pluginRC.mini-move = entryAnywhere ''
|
||||
require("mini.move").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/move/default.nix
Normal file
6
modules/plugins/mini/move/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./move.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/move/move.nix
Normal file
13
modules/plugins/mini/move/move.nix
Normal 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" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue