mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-12 20:13:19 +00:00
Compare commits
33 commits
83fd1b5c7a
...
43e6e673af
Author | SHA1 | Date | |
---|---|---|---|
![]() |
43e6e673af | ||
![]() |
1b82b13dc7 | ||
![]() |
f5850432a8 | ||
![]() |
f672689023 | ||
![]() |
669088244d | ||
![]() |
769e07e7cc | ||
![]() |
0b9f69a20f | ||
![]() |
9dd2a11e4d | ||
![]() |
09e83a6cec | ||
![]() |
c027a87527 | ||
![]() |
abd76db843 | ||
![]() |
85c0839105 | ||
![]() |
6fc691a7c3 | ||
![]() |
14bc100a5e | ||
![]() |
290de58ae9 | ||
![]() |
1ee0a513cc | ||
![]() |
346f536737 | ||
![]() |
ee5a157894 | ||
![]() |
805dd05b39 | ||
![]() |
d3e39d10b0 | ||
![]() |
14061c6db5 | ||
![]() |
5c105b8182 | ||
![]() |
b10c525ffe | ||
![]() |
9b4332ed77 | ||
![]() |
f632fa1a92 | ||
![]() |
0faf4b923b | ||
![]() |
205582135d | ||
![]() |
1988203073 | ||
![]() |
d1d91ff8a5 | ||
![]() |
b552b33077 | ||
![]() |
920e0bad5e | ||
![]() |
f3ce59ed40 | ||
![]() |
50efc3b557 |
3 changed files with 20 additions and 36 deletions
|
@ -6,7 +6,7 @@
|
|||
inherit (lib.options) mkOption;
|
||||
inherit (lib.attrsets) attrNames mapAttrs' filterAttrs nameValuePair;
|
||||
inherit (lib.strings) hasPrefix removePrefix;
|
||||
inherit (lib.types) submodule either package enum str lines attrsOf anything listOf nullOr oneOf bool int;
|
||||
inherit (lib.types) submodule either package enum str lines attrsOf anything listOf nullOr oneOf bool;
|
||||
# Get the names of all flake inputs that start with the given prefix.
|
||||
fromInputs = {
|
||||
inputs,
|
||||
|
@ -138,18 +138,6 @@
|
|||
|
||||
# lz.n options
|
||||
|
||||
enabled = mkOption {
|
||||
type = nullOr (either bool str);
|
||||
description = "When false, or if the lua function returns false, this plugin will not be included in the spec";
|
||||
default = null;
|
||||
};
|
||||
|
||||
beforeAll = mkOption {
|
||||
type = nullOr str;
|
||||
description = "Lua code to run before any plugins are loaded. This will be wrapped in a function.";
|
||||
default = null;
|
||||
};
|
||||
|
||||
before = mkOption {
|
||||
type = nullOr str;
|
||||
description = "Lua code to run before plugin is loaded. This will be wrapped in a function.";
|
||||
|
@ -207,27 +195,7 @@
|
|||
'';
|
||||
};
|
||||
|
||||
colorscheme = mkOption {
|
||||
description = "Lazy-load on colorscheme.";
|
||||
type = nullOr (either str (listOf str));
|
||||
default = null;
|
||||
};
|
||||
|
||||
priority = mkOption {
|
||||
type = nullOr int;
|
||||
description = "Only useful for stat plugins (not lazy-loaded) to force loading certain plugins first.";
|
||||
default = null;
|
||||
};
|
||||
|
||||
load = mkOption {
|
||||
type = str;
|
||||
default = null;
|
||||
description = ''
|
||||
Lua code to override the `vim.g.lz_n.load()` function for a single plugin.
|
||||
|
||||
This will be wrapped in a function
|
||||
'';
|
||||
};
|
||||
# TODO: enabled, beforeAll, colorscheme, priority, load
|
||||
};
|
||||
};
|
||||
in {
|
||||
|
|
|
@ -44,7 +44,23 @@
|
|||
|
||||
# legacy stuff
|
||||
mapOption = submodule {
|
||||
options = mapConfigOptions;
|
||||
options =
|
||||
mapConfigOptions
|
||||
// {
|
||||
action = mkOption {
|
||||
type = str;
|
||||
description = "The action to execute.";
|
||||
};
|
||||
|
||||
lua = mkOption {
|
||||
type = bool;
|
||||
description = ''
|
||||
If true, `action` is considered to be lua code.
|
||||
Thus, it will not be wrapped in `""`.
|
||||
'';
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mapOptions = mode:
|
||||
|
|
|
@ -37,7 +37,7 @@ in {
|
|||
else keymap.action;
|
||||
|
||||
getOpts = keymap: {
|
||||
inherit (keymap) desc silent nowait script expr unique noremap;
|
||||
inherit (keymap) silent nowait script expr unique noremap;
|
||||
};
|
||||
|
||||
toLuaKeymap = {
|
||||
|
|
Loading…
Add table
Reference in a new issue