chore check-dep: add init message
This commit is contained in:
@@ -16,15 +16,16 @@ function M.checkCommand(cmd, desc)
|
||||
p:close()
|
||||
|
||||
if output == nil and desc ~= nil and desc ~= "" then
|
||||
vim.api.nvim_echo({ { "✗ " .. cmd .. " [" .. desc .. "] - not found!", "DiagnosticError" } }, true, {})
|
||||
vim.api.nvim_echo({ { " ✗ " .. cmd .. " [" .. desc .. "] - not found!", "DiagnosticError" } }, true, {})
|
||||
elseif output == nil then
|
||||
vim.api.nvim_echo({ { "✗ " .. cmd .. " not found!", "DiagnosticError" } }, true, {})
|
||||
vim.api.nvim_echo({ { " ✗ " .. cmd .. " not found!", "DiagnosticError" } }, true, {})
|
||||
else
|
||||
vim.api.nvim_echo({ { "✓ " .. cmd, "DiagnosticOk" } }, true, {})
|
||||
vim.api.nvim_echo({ { " ✓ " .. cmd, "DiagnosticOk" } }, true, {})
|
||||
end
|
||||
end
|
||||
|
||||
function M.run()
|
||||
print("Check installed system commands:")
|
||||
for i, cmd in ipairs(cmdsList) do
|
||||
M.checkCommand(cmd.cmd, cmd.desc)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user