mini/fuzzy: init

This commit is contained in:
LilleAila 2025-01-17 20:21:12 +01:00
parent 7472cac221
commit 173ea3f43c
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -69,6 +69,7 @@
- `mini.doc`
- `mini.extra`
- `mini.files`
- `mini.fuzzy`
[kaktu5](https://github.com/kaktu5):

View file

@ -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",

View file

@ -820,5 +820,10 @@
url = "github:echasnovski/mini.files";
flake = false;
};
plugin-mini-fuzzy = {
url = "github:echasnovski/mini.fuzzy";
flake = false;
};
};
}

View file

@ -15,5 +15,6 @@
./doc
./extra
./files
./fuzzy
];
}

View 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})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./fuzzy.nix
./config.nix
];
}

View 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" {};
};
}