mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-14 21:11:09 +01:00
treewide: remove with lib;
This commit is contained in:
parent
cd0443e166
commit
629f9d75f8
67 changed files with 276 additions and 338 deletions
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "hydra";
|
||||
package = "hydra-nvim";
|
||||
description = "Create custom submodes and menus, inspired by the Hydra Emacs package.";
|
||||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
extraOptions = {
|
||||
# A list of `Hydra` definitions
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ lib }:
|
||||
with lib;
|
||||
let
|
||||
inherit (lib) types;
|
||||
hydraType = types.submodule {
|
||||
freeformType = with types; attrsOf anything;
|
||||
options = {
|
||||
|
|
@ -109,7 +109,7 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
mkOption {
|
||||
lib.mkOption {
|
||||
type = types.listOf hydraType;
|
||||
default = [ ];
|
||||
description = ''
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@
|
|||
#
|
||||
# -> https://github.com/nvimtools/hydra.nvim?tab=readme-ov-file#config
|
||||
{ lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
inherit (lib) types;
|
||||
in
|
||||
{
|
||||
debug = lib.nixvim.defaultNullOpts.mkBool false ''
|
||||
Whether to enable debug mode.
|
||||
|
|
@ -128,7 +130,7 @@ with lib;
|
|||
close it with `Hydra.hint:close()`.
|
||||
'';
|
||||
|
||||
funcs = mkOption {
|
||||
funcs = lib.mkOption {
|
||||
type = with lib.types; attrsOf strLuaFn;
|
||||
description = ''
|
||||
Table from function names to function.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue