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
|
||||
|
||||
@@ -11,5 +11,5 @@ require("check_dependencies").setup({
|
||||
{ cmd = "stylua", desc = "lua formatter"},
|
||||
|
||||
-- Test not exists
|
||||
{ cmd = "fff", desc = "lua formatter"},
|
||||
{ cmd = "fff", desc = "test not exists command"},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user