feat: allow adding custom globals
This commit is contained in:
parent
39eb7cd853
commit
f809919c3c
1 changed files with 6 additions and 3 deletions
|
@ -71,6 +71,7 @@
|
||||||
},
|
},
|
||||||
lua-version ? "5.1",
|
lua-version ? "5.1",
|
||||||
disabled-diagnostics ? [],
|
disabled-diagnostics ? [],
|
||||||
|
globals ? [],
|
||||||
}: let
|
}: let
|
||||||
pluginPackages =
|
pluginPackages =
|
||||||
map (x: x.plugin or x)
|
map (x: x.plugin or x)
|
||||||
|
@ -88,9 +89,11 @@
|
||||||
in {
|
in {
|
||||||
runtime.version = "LuaJIT";
|
runtime.version = "LuaJIT";
|
||||||
Lua = {
|
Lua = {
|
||||||
globals = [
|
globals =
|
||||||
|
[
|
||||||
"vim"
|
"vim"
|
||||||
];
|
]
|
||||||
|
++ globals;
|
||||||
workspace = {
|
workspace = {
|
||||||
library =
|
library =
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue