mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/hipatterns: init
This commit is contained in:
parent
c490536230
commit
fca63ede6c
7 changed files with 62 additions and 0 deletions
|
@ -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):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,5 +17,6 @@
|
||||||
./files
|
./files
|
||||||
./fuzzy
|
./fuzzy
|
||||||
./git
|
./git
|
||||||
|
./hipatterns
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/hipatterns/config.nix
Normal file
19
modules/plugins/mini/hipatterns/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.hipatterns;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-hipatterns"];
|
||||||
|
|
||||||
|
pluginRC.mini-hipatterns = entryAnywhere ''
|
||||||
|
require("mini.hipatterns").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/hipatterns/default.nix
Normal file
6
modules/plugins/mini/hipatterns/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hipatterns.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/hipatterns/hipatterns.nix
Normal file
13
modules/plugins/mini/hipatterns/hipatterns.nix
Normal 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" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue