Update handling of LS dependencies
This commit is contained in:
+22
-1
@@ -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, ", ")
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user