mini/pairs: init

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

View file

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

View file

@ -1384,6 +1384,22 @@
"type": "github"
}
},
"plugin-mini-pairs": {
"flake": false,
"locked": {
"lastModified": 1728656795,
"narHash": "sha256-PtHxLKU1smVTx655r5SINxuz5CJmZWnBW70T8zJ/oxM=",
"owner": "echasnovski",
"repo": "mini.pairs",
"rev": "7e834c5937d95364cc1740e20d673afe2d034cdb",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.pairs",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2608,6 +2624,7 @@
"plugin-mini-move": "plugin-mini-move",
"plugin-mini-notify": "plugin-mini-notify",
"plugin-mini-operators": "plugin-mini-operators",
"plugin-mini-pairs": "plugin-mini-pairs",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

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

View file

@ -28,5 +28,6 @@
./move
./notify
./operators
./pairs
];
}

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

View file

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