mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
mini/bracketed: init
This commit is contained in:
parent
be5ab79342
commit
eaae68aea2
7 changed files with 62 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue