Skip to content

Commit

Permalink
fix(health): unlikely case when fzf --version breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 20, 2024
1 parent c40c451 commit dd1aa78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/fzf-lua/_health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ function M.check()
end

if vim.fn.executable("fzf") == 1 then
local version = utils.fzf_version()
if version[1] < 1 and version[2] < 53 then
local version, rc, err = utils.fzf_version()
if not version then
error(string.format("'fzf --version' failed with error %s: %s", rc, err))
elseif version[1] < 1 and version[2] < 53 then
warn("'fzf' `>= 0.53` is recommended.")
end
end
Expand Down

0 comments on commit dd1aa78

Please sign in to comment.