fix: give default init.lua if none provided

main
LeMarsu 2024-05-28 20:06:29 +02:00
parent bbb0953209
commit d66d4b80e0
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
extractPlugin = map (p: p.plugin);
customRC = let
rc = ({init ? "", ...}: init) runtime;
rc = ({init ? ../lua/default_init.lua, ...}: init) runtime;
in
deps.textOrContent rc;

View File

@ -69,7 +69,7 @@ function M.is_loaded(name)
end
function M.setup(config)
local post_init = config.post_init or function() end
local post_init = config and config.post_init or function() end
M.init_all()
post_init()