Use vim.notify instead of print in some places (#1927)

This commit is contained in:
Santos Gallegos 2021-10-19 12:01:20 -05:00 committed by GitHub
parent 58dd95f4a4
commit 04db2e8295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,13 +429,13 @@ function M.update(options)
end
end
if installed == 0 then
print "Parsers are up-to-date!"
vim.notify "Parsers are up-to-date!"
end
else
local parsers_to_update = configs.get_update_strategy() == "lockfile" and outdated_parsers()
or info.installed_parsers()
if #parsers_to_update == 0 then
print "All parsers are up-to-date!"
vim.notify "All parsers are up-to-date!"
end
for _, lang in pairs(parsers_to_update) do
install {