feat check dependencies: add color to messages
This commit is contained in:
@@ -16,11 +16,11 @@ function M.checkCommand(cmd, desc)
|
||||
p:close()
|
||||
|
||||
if output == nil and desc ~= nil and desc ~= "" then
|
||||
print(cmd .. " [" .. desc .. "] - not found!")
|
||||
vim.api.nvim_echo({ { "✗ " .. cmd .. " [" .. desc .. "] - not found!", "DiagnosticError" } }, true, {})
|
||||
elseif output == nil then
|
||||
print(cmd .. " - not found!")
|
||||
vim.api.nvim_echo({ { "✗ " .. cmd .. " not found!", "DiagnosticError" } }, true, {})
|
||||
else
|
||||
print(cmd .. " - ok")
|
||||
vim.api.nvim_echo({ { "✓ " .. cmd, "DiagnosticOk" } }, true, {})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user