We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cmd --version
1 parent fef064a commit 970fc98Copy full SHA for 970fc98
1 file changed
lua/fzf-lua/_health.lua
@@ -19,7 +19,8 @@ function M.check()
19
else
20
local version = vim.fn.system(tool .. " --version") or ""
21
version = vim.trim(vim.split(version, "\n")[1])
22
- ok("'" .. tool .. "' `" .. version .. "`")
+ local is_ok = vim.v.shell_error == 0
23
+ (is_ok and ok or error)("'" .. tool .. "' `" .. version .. "`")
24
return true
25
end
26
@@ -106,7 +107,7 @@ function M.check()
106
107
if vim.env.FZF_DEFAULT_OPTS_FILE == nil then
108
ok("`FZF_DEFAULT_OPTS_FILE` is not set")
109
- ok("`FZF_DEFAULT_OPTS_FILE` is set to `" .. vim.env.FZF_DEFAULT_OPTS_FILE .. "`")
110
+ ok("`$FZF_DEFAULT_OPTS_FILE` is set to `" .. vim.env.FZF_DEFAULT_OPTS_FILE .. "`")
111
112
113
0 commit comments