mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
core/build: allow paths in additionalRuntim
an option with path in its name doesn't take a path, what a tragedy
This commit is contained in:
parent
13b59b00db
commit
ef6be76313
1 changed files with 8 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
||||||
inherit (lib.strings) optionalString isString concatStringsSep;
|
inherit (lib.strings) optionalString isString concatStringsSep;
|
||||||
inherit (lib.misc) mapAttrsFlatten;
|
inherit (lib.misc) mapAttrsFlatten;
|
||||||
inherit (lib.trivial) showWarnings;
|
inherit (lib.trivial) showWarnings;
|
||||||
inherit (lib.types) bool str oneOf attrsOf nullOr attrs submodule lines listOf;
|
inherit (lib.types) bool str oneOf attrsOf nullOr attrs submodule lines listOf either path;
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.nvim.types) dagOf;
|
inherit (lib.nvim.types) dagOf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere entryAfter topoSort mkLuarcSection mkVimrcSection;
|
inherit (lib.nvim.dag) entryAnywhere entryAfter topoSort mkLuarcSection mkVimrcSection;
|
||||||
|
@ -121,9 +121,14 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
additionalRuntimePaths = mkOption {
|
additionalRuntimePaths = mkOption {
|
||||||
type = listOf str;
|
type = listOf (either path str);
|
||||||
default = [];
|
default = [];
|
||||||
example = literalExpression ''["./nvim"]'';
|
example = literalExpression ''
|
||||||
|
[
|
||||||
|
"~/.config/nvim-extra" # absolute path, as a string - impure
|
||||||
|
./nvim # relative path, as a path - pure
|
||||||
|
]
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Additional runtime paths that will be appended to the
|
Additional runtime paths that will be appended to the
|
||||||
active runtimepath of the Neovim. This can be used to
|
active runtimepath of the Neovim. This can be used to
|
||||||
|
|
Loading…
Reference in a new issue