mini/operators: init

This commit is contained in:
LilleAila 2025-01-17 21:02:20 +01:00
parent 2691dbd351
commit 088083c68a
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -81,6 +81,7 @@
- `mini.misc`
- `mini.move`
- `mini.notify`
- `mini.operators`
[kaktu5](https://github.com/kaktu5):

View file

@ -1368,6 +1368,22 @@
"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": {
"flake": false,
"locked": {
@ -2591,6 +2607,7 @@
"plugin-mini-misc": "plugin-mini-misc",
"plugin-mini-move": "plugin-mini-move",
"plugin-mini-notify": "plugin-mini-notify",
"plugin-mini-operators": "plugin-mini-operators",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -880,5 +880,10 @@
url = "github:echasnovski/mini.notify";
flake = false;
};
plugin-mini-operators = {
url = "github:echasnovski/mini.operators";
flake = false;
};
};
}

View file

@ -27,5 +27,6 @@
./misc
./move
./notify
./operators
];
}

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

View file

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