mini/bracketed: init

This commit is contained in:
LilleAila 2025-01-17 19:14:30 +01:00
parent be5ab79342
commit eaae68aea2
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -59,6 +59,7 @@
- `mini.animate` - `mini.animate`
- `mini.base16` - `mini.base16`
- `mini.basics` - `mini.basics`
- `mini.bracketed`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1016,6 +1016,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-bracketed": {
"flake": false,
"locked": {
"lastModified": 1737036218,
"narHash": "sha256-y+tGFF1H37ES/hnEtr3GJK3GeB6D5s8ZdSpvzl+lh3s=",
"owner": "echasnovski",
"repo": "mini.bracketed",
"rev": "0091e11fabe34973fc038a8d0d0485202742e403",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.bracketed",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2217,6 +2233,7 @@
"plugin-mini-animate": "plugin-mini-animate", "plugin-mini-animate": "plugin-mini-animate",
"plugin-mini-base16": "plugin-mini-base16", "plugin-mini-base16": "plugin-mini-base16",
"plugin-mini-basics": "plugin-mini-basics", "plugin-mini-basics": "plugin-mini-basics",
"plugin-mini-bracketed": "plugin-mini-bracketed",
"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",

View file

@ -770,5 +770,10 @@
url = "github:echasnovski/mini.basics"; url = "github:echasnovski/mini.basics";
flake = false; flake = false;
}; };
plugin-mini-bracketed = {
url = "github:echasnovski/mini.bracketed";
flake = false;
};
}; };
} }

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.bracketed = {
enable = mkEnableOption "mini.bracketed";
setupOpts = mkPluginSetupOption "mini.bracketed" {};
};
}

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

View file

@ -0,0 +1,6 @@
{
imports = [
./bracketed.nix
./config.nix
];
}

View file

@ -5,5 +5,6 @@
./animate ./animate
# ./base16 # NOTE: configured in theme/ # ./base16 # NOTE: configured in theme/
./basics ./basics
./bracketed
]; ];
} }