feat: allow adding custom globals

This commit is contained in:
punkfairie 2024-12-09 20:29:39 -08:00
parent 39eb7cd853
commit f809919c3c
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -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 =
[ [