mirror of
https://github.com/NotAShelf/direnv.nvim.git
synced 2026-02-24 12:23:23 +00:00
specify direnv v2.33 requirement
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I070fd364adb5d8c64240d8681d8360916a6a6964
This commit is contained in:
parent
2238a611b9
commit
b9c1cac9a5
2 changed files with 18 additions and 7 deletions
|
|
@ -164,6 +164,14 @@ M._get_rc_status = function(callback)
|
|||
|
||||
local ok, status = pcall(vim.json.decode, obj.stdout)
|
||||
if not ok or not status or not status.state then
|
||||
vim.schedule(function()
|
||||
notify(
|
||||
"Failed to parse direnv status. Your version of direnv may not support JSON output. "
|
||||
.. "Please ensure you have direnv v2.33.0 or later installed. "
|
||||
.. "You can verify by running: direnv status --json",
|
||||
vim.log.levels.ERROR
|
||||
)
|
||||
end)
|
||||
for _, cb in ipairs(pending_callbacks) do
|
||||
cb(nil, nil)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue