mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/bufremove: init
This commit is contained in:
parent
eaae68aea2
commit
beedffcb5b
7 changed files with 62 additions and 0 deletions
|
@ -60,6 +60,7 @@
|
|||
- `mini.base16`
|
||||
- `mini.basics`
|
||||
- `mini.bracketed`
|
||||
- `mini.bufremove`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1032,6 +1032,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2234,6 +2250,7 @@
|
|||
"plugin-mini-base16": "plugin-mini-base16",
|
||||
"plugin-mini-basics": "plugin-mini-basics",
|
||||
"plugin-mini-bracketed": "plugin-mini-bracketed",
|
||||
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -775,5 +775,10 @@
|
|||
url = "github:echasnovski/mini.bracketed";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-bufremove = {
|
||||
url = "github:echasnovski/mini.bufremove";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
13
modules/plugins/mini/bufremove/bufremove.nix
Normal file
13
modules/plugins/mini/bufremove/bufremove.nix
Normal 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" {};
|
||||
};
|
||||
}
|
19
modules/plugins/mini/bufremove/config.nix
Normal file
19
modules/plugins/mini/bufremove/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.bufremove;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-bufremove"];
|
||||
|
||||
pluginRC.mini-bufremove = entryAnywhere ''
|
||||
require("mini.bufremove").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/bufremove/default.nix
Normal file
6
modules/plugins/mini/bufremove/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./bufremove.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -6,5 +6,6 @@
|
|||
# ./base16 # NOTE: configured in theme/
|
||||
./basics
|
||||
./bracketed
|
||||
./bufremove
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue