From 24c726151769c2f2ee493ce45c8027860ddbcbcd Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 30 Dec 2024 17:35:18 -0800 Subject: [PATCH] feat: allow setting runtime.path --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9a2ba5a..8642c1d 100644 --- a/flake.nix +++ b/flake.nix @@ -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"