mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-21 10:58:01 +00:00
lazy: allow lines in place of str for lua code
This commit is contained in:
parent
132d83e588
commit
7e10870363
1 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf;
|
inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf lines;
|
||||||
inherit (lib.nvim.types) pluginType;
|
inherit (lib.nvim.types) pluginType;
|
||||||
inherit (lib.nvim.config) mkBool;
|
inherit (lib.nvim.config) mkBool;
|
||||||
|
|
||||||
|
@ -76,19 +76,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeAll = mkOption {
|
beforeAll = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr lines;
|
||||||
description = "Lua code to run before any plugins are loaded. This will be wrapped in a function.";
|
description = "Lua code to run before any plugins are loaded. This will be wrapped in a function.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
before = mkOption {
|
before = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr lines;
|
||||||
description = "Lua code to run before plugin is loaded. This will be wrapped in a function.";
|
description = "Lua code to run before plugin is loaded. This will be wrapped in a function.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
after = mkOption {
|
after = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr lines;
|
||||||
description = ''
|
description = ''
|
||||||
Lua code to run after plugin is loaded. This will be wrapped in a function.
|
Lua code to run after plugin is loaded. This will be wrapped in a function.
|
||||||
|
|
||||||
|
@ -169,12 +169,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
load = mkOption {
|
load = mkOption {
|
||||||
type = nullOr str;
|
type = nullOr lines;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
Lua code to override the `vim.g.lz_n.load()` function for a single plugin.
|
Lua code to override the `vim.g.lz_n.load()` function for a single plugin.
|
||||||
|
|
||||||
This will be wrapped in a function
|
This will be wrapped in a function.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue