mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
mini/move: init
This commit is contained in:
parent
9a27dafe67
commit
6060ae4182
7 changed files with 62 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue