mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Use vim.notify instead of print in some places (#1927)
This commit is contained in:
parent
58dd95f4a4
commit
04db2e8295
1 changed files with 2 additions and 2 deletions
|
|
@ -429,13 +429,13 @@ function M.update(options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if installed == 0 then
|
if installed == 0 then
|
||||||
print "Parsers are up-to-date!"
|
vim.notify "Parsers are up-to-date!"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local parsers_to_update = configs.get_update_strategy() == "lockfile" and outdated_parsers()
|
local parsers_to_update = configs.get_update_strategy() == "lockfile" and outdated_parsers()
|
||||||
or info.installed_parsers()
|
or info.installed_parsers()
|
||||||
if #parsers_to_update == 0 then
|
if #parsers_to_update == 0 then
|
||||||
print "All parsers are up-to-date!"
|
vim.notify "All parsers are up-to-date!"
|
||||||
end
|
end
|
||||||
for _, lang in pairs(parsers_to_update) do
|
for _, lang in pairs(parsers_to_update) do
|
||||||
install {
|
install {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue