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",
disabled-diagnostics ? [],
globals ? [],
}: let
pluginPackages =
map (x: x.plugin or x)
@ -88,9 +89,11 @@
in {
runtime.version = "LuaJIT";
Lua = {
globals = [
"vim"
];
globals =
[
"vim"
]
++ globals;
workspace = {
library =
[