mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/fuzzy: init
This commit is contained in:
parent
7472cac221
commit
173ea3f43c
7 changed files with 62 additions and 0 deletions
|
@ -69,6 +69,7 @@
|
|||
- `mini.doc`
|
||||
- `mini.extra`
|
||||
- `mini.files`
|
||||
- `mini.fuzzy`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1176,6 +1176,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-mini-fuzzy": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1730726192,
|
||||
"narHash": "sha256-XvDkDfwPcBxySuz58f2mpWTeo8EsOnMvZUcNI8HNZg8=",
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.fuzzy",
|
||||
"rev": "faa5a6c0d29c28012c90bd011162963a58715428",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.fuzzy",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-minimap-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2387,6 +2403,7 @@
|
|||
"plugin-mini-doc": "plugin-mini-doc",
|
||||
"plugin-mini-extra": "plugin-mini-extra",
|
||||
"plugin-mini-files": "plugin-mini-files",
|
||||
"plugin-mini-fuzzy": "plugin-mini-fuzzy",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -820,5 +820,10 @@
|
|||
url = "github:echasnovski/mini.files";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-fuzzy = {
|
||||
url = "github:echasnovski/mini.fuzzy";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,5 +15,6 @@
|
|||
./doc
|
||||
./extra
|
||||
./files
|
||||
./fuzzy
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/fuzzy/config.nix
Normal file
19
modules/plugins/mini/fuzzy/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.fuzzy;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-fuzzy"];
|
||||
|
||||
pluginRC.mini-fuzzy = entryAnywhere ''
|
||||
require("mini.fuzzy").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/fuzzy/default.nix
Normal file
6
modules/plugins/mini/fuzzy/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./fuzzy.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/fuzzy/fuzzy.nix
Normal file
13
modules/plugins/mini/fuzzy/fuzzy.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.mini.fuzzy = {
|
||||
enable = mkEnableOption "mini.fuzzy";
|
||||
setupOpts = mkPluginSetupOption "mini.fuzzy" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue