mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/misc: init
This commit is contained in:
parent
c9d39cb758
commit
9a27dafe67
7 changed files with 62 additions and 0 deletions
|
@ -78,6 +78,7 @@
|
|||
- `mini.jump`
|
||||
- `mini.jump2d`
|
||||
- `mini.map`
|
||||
- `mini.misc`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1320,6 +1320,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-mini-misc": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1734103112,
|
||||
"narHash": "sha256-qnYa4IZk14MGZArmVpn15l+P9cwtFWomBVxRuYHVyXc=",
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.misc",
|
||||
"rev": "645fb9367c19bb485902e54e5451425981498601",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.misc",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-minimap-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2540,6 +2556,7 @@
|
|||
"plugin-mini-jump": "plugin-mini-jump",
|
||||
"plugin-mini-jump2d": "plugin-mini-jump2d",
|
||||
"plugin-mini-map": "plugin-mini-map",
|
||||
"plugin-mini-misc": "plugin-mini-misc",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -865,5 +865,10 @@
|
|||
url = "github:echasnovski/mini.map";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-misc = {
|
||||
url = "github:echasnovski/mini.misc";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,5 +24,6 @@
|
|||
./jump
|
||||
./jump2d
|
||||
./map
|
||||
./misc
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/misc/config.nix
Normal file
19
modules/plugins/mini/misc/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.misc;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-misc"];
|
||||
|
||||
pluginRC.mini-misc = entryAnywhere ''
|
||||
require("mini.misc").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/misc/default.nix
Normal file
6
modules/plugins/mini/misc/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./misc.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/misc/misc.nix
Normal file
13
modules/plugins/mini/misc/misc.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.mini.misc = {
|
||||
enable = mkEnableOption "mini.misc";
|
||||
setupOpts = mkPluginSetupOption "mini.misc" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue