From f809919c3c7752b8eab5ef14a65eb5c90bb3e926 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 9 Dec 2024 20:29:39 -0800 Subject: [PATCH] feat: allow adding custom globals --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index cac3a07..676b1e7 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = [