mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/operators: init
This commit is contained in:
parent
2691dbd351
commit
088083c68a
7 changed files with 62 additions and 0 deletions
|
@ -81,6 +81,7 @@
|
||||||
- `mini.misc`
|
- `mini.misc`
|
||||||
- `mini.move`
|
- `mini.move`
|
||||||
- `mini.notify`
|
- `mini.notify`
|
||||||
|
- `mini.operators`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1368,6 +1368,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-operators": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731776514,
|
||||||
|
"narHash": "sha256-+Zhy0AhuMPSHnM6dqbV45Aa7dS7XJ4mpfcHApSbuy8A=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.operators",
|
||||||
|
"rev": "7cb4dc66c51a3d736d347bbc517dc73dc7d28888",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.operators",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2591,6 +2607,7 @@
|
||||||
"plugin-mini-misc": "plugin-mini-misc",
|
"plugin-mini-misc": "plugin-mini-misc",
|
||||||
"plugin-mini-move": "plugin-mini-move",
|
"plugin-mini-move": "plugin-mini-move",
|
||||||
"plugin-mini-notify": "plugin-mini-notify",
|
"plugin-mini-notify": "plugin-mini-notify",
|
||||||
|
"plugin-mini-operators": "plugin-mini-operators",
|
||||||
"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",
|
||||||
|
|
|
@ -880,5 +880,10 @@
|
||||||
url = "github:echasnovski/mini.notify";
|
url = "github:echasnovski/mini.notify";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-operators = {
|
||||||
|
url = "github:echasnovski/mini.operators";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,5 +27,6 @@
|
||||||
./misc
|
./misc
|
||||||
./move
|
./move
|
||||||
./notify
|
./notify
|
||||||
|
./operators
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/operators/config.nix
Normal file
19
modules/plugins/mini/operators/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.operators;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-operators"];
|
||||||
|
|
||||||
|
pluginRC.mini-operators = entryAnywhere ''
|
||||||
|
require("mini.operators").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/operators/default.nix
Normal file
6
modules/plugins/mini/operators/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./operators.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/operators/operators.nix
Normal file
13
modules/plugins/mini/operators/operators.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.operators = {
|
||||||
|
enable = mkEnableOption "mini.operators";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.operators" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue