Update handling of LS dependencies

This commit is contained in:
2023-09-05 19:34:05 +02:00
committed by GitHub
parent eb1da79e6f
commit 3d87f08761
6 changed files with 39 additions and 4 deletions
+22 -1
View File
@@ -271,7 +271,28 @@ function P.language_servers(self)
if #not_installed > 0 then
utils.warn(
("Disabling %s because the following required package(s) is not installed: %s"):format(
("Disabling %s because the following required package(s) are not installed: %s"):format(
name,
table.concat(not_installed, ", ")
),
module_name
)
server.enabled = false
goto next_server
end
end
if server.py_module_deps ~= nil then
local not_installed = {}
for _, mod in ipairs(server.py_module_deps) do
if not utils.python3_module_is_installed(mod) then
table.insert(not_installed, mod)
end
end
if #not_installed > 0 then
utils.warn(
("Disabling %s because the following required python3 module(s) are not installed: %s"):format(
name,
table.concat(not_installed, ", ")
),