mini/hipatterns: init

This commit is contained in:
LilleAila 2025-01-17 20:26:09 +01:00
parent c490536230
commit fca63ede6c
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -71,6 +71,7 @@
- `mini.files` - `mini.files`
- `mini.fuzzy` - `mini.fuzzy`
- `mini.git` - `mini.git`
- `mini.hipatterns`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1208,6 +1208,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-hipatterns": {
"flake": false,
"locked": {
"lastModified": 1733141274,
"narHash": "sha256-zJ8OMzfcBh9NtSg2FHDjB5DFX9C2qZRo8t8lc097sCI=",
"owner": "echasnovski",
"repo": "mini.hipatterns",
"rev": "f34975103a38b3f608219a1324cdfc58ea660b8b",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.hipatterns",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2421,6 +2437,7 @@
"plugin-mini-files": "plugin-mini-files", "plugin-mini-files": "plugin-mini-files",
"plugin-mini-fuzzy": "plugin-mini-fuzzy", "plugin-mini-fuzzy": "plugin-mini-fuzzy",
"plugin-mini-git": "plugin-mini-git", "plugin-mini-git": "plugin-mini-git",
"plugin-mini-hipatterns": "plugin-mini-hipatterns",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -830,5 +830,10 @@
url = "github:echasnovski/mini-git"; url = "github:echasnovski/mini-git";
flake = false; flake = false;
}; };
plugin-mini-hipatterns = {
url = "github:echasnovski/mini.hipatterns";
flake = false;
};
}; };
} }

View file

@ -17,5 +17,6 @@
./files ./files
./fuzzy ./fuzzy
./git ./git
./hipatterns
]; ];
} }

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.hipatterns;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-hipatterns"];
pluginRC.mini-hipatterns = entryAnywhere ''
require("mini.hipatterns").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./hipatterns.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.hipatterns = {
enable = mkEnableOption "mini.hipatterns";
setupOpts = mkPluginSetupOption "mini.hipatterns" {};
};
}