chore check-dep: add init message

This commit is contained in:
Ian
2026-07-11 00:08:57 +02:00
parent 7aceac087e
commit 2b60372114
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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
+1 -1
View File
@@ -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"},
})