feat: allow setting runtime.path
This commit is contained in:
parent
7d62e435c3
commit
24c7261517
1 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@
|
|||
lua-version ? "5.1",
|
||||
disabled-diagnostics ? [],
|
||||
globals ? [],
|
||||
runtimePath ? ["?.lua" "?/init.lua"],
|
||||
}: let
|
||||
pluginPackages =
|
||||
map (x: x.plugin or x)
|
||||
|
@ -88,7 +89,7 @@
|
|||
pkg-sharedirs = builtins.map (pkg: "${pkg}/share/lua/${lua-version}") rocks;
|
||||
in {
|
||||
runtime.version = "LuaJIT";
|
||||
runtime.path = ["?.lua" "?/init.lua"];
|
||||
runtime.path = runtimePath;
|
||||
globals =
|
||||
[
|
||||
"vim"
|
||||
|
|
Loading…
Reference in a new issue