mini/bufremove: init

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

View file

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

View file

@ -1032,6 +1032,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-bufremove": {
"flake": false,
"locked": {
"lastModified": 1730726192,
"narHash": "sha256-CB6ZIlrCQlh2W44Knnb10REDcvj4jcYkW/9CiOaoH2E=",
"owner": "echasnovski",
"repo": "mini.bufremove",
"rev": "285bdac9596ee7375db50c0f76ed04336dcd2685",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.bufremove",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2234,6 +2250,7 @@
"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-mini-bracketed": "plugin-mini-bracketed",
"plugin-mini-bufremove": "plugin-mini-bufremove",
"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

@ -775,5 +775,10 @@
url = "github:echasnovski/mini.bracketed"; url = "github:echasnovski/mini.bracketed";
flake = false; flake = false;
}; };
plugin-mini-bufremove = {
url = "github:echasnovski/mini.bufremove";
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.bufremove = {
enable = mkEnableOption "mini.bufremove";
setupOpts = mkPluginSetupOption "mini.bufremove" {};
};
}

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

View file

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

View file

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