From ce01b89e0a370840a1525cf9aa90115ed07dcf8f Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Fri, 27 Mar 2026 14:31:55 +0100 Subject: [PATCH] fix: crash when statusline() is called before init --- lua/direnv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/direnv.lua b/lua/direnv.lua index 2a6b8da..8e1b6a1 100644 --- a/lua/direnv.lua +++ b/lua/direnv.lua @@ -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 )