fix: crash when statusline() is called before init

This commit is contained in:
Ching Pei Yang 2026-03-27 14:31:55 +01:00
commit ce01b89e0a
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -204,7 +204,7 @@ M._get_rc_status = function(callback)
end
vim.system(
{ M.config.bin, "status", "--json" },
{ (M.config or {}).bin or "direnv", "status", "--json" },
{ text = true, cwd = cwd },
on_exit
)