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