Fix error handling
This commit is contained in:
+3
-5
@@ -38,11 +38,9 @@ P.config = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for server, _ in pairs(P.config) do
|
for server, _ in pairs(P.config) do
|
||||||
local ok, resp = pcall(require, "lsp." .. server)
|
utils.try_require("lsp." .. server, package_name, function(mod)
|
||||||
if not ok then
|
P.config[server] = mod
|
||||||
return
|
end)
|
||||||
end
|
|
||||||
P.config[server] = resp
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function ca_rename()
|
local function ca_rename()
|
||||||
|
|||||||
Reference in New Issue
Block a user