fix(installer): don't update that are not installed (exclude global parsers)

This commit is contained in:
Folke Lemaitre 2022-11-24 21:34:23 +01:00 committed by Christian Clason
parent 1b3f93dcb9
commit 37767540e5

View file

@ -115,7 +115,7 @@ end
---@return table
local function outdated_parsers()
return vim.tbl_filter(function(lang)
return needs_update(lang)
return is_installed(lang) and needs_update(lang)
end, info.installed_parsers())
end