feat check dependencies: add color to messages

This commit is contained in:
Ian
2026-07-11 00:02:16 +02:00
parent 44fdfa566d
commit 7aceac087e
2 changed files with 16 additions and 10 deletions
+3 -3
View File
@@ -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