mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
fix(lsp): some servers have dynamic commands (#3471)
This commit is contained in:
parent
5fb3f07c7b
commit
8474a06b43
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ local function launch_server(server_name, config)
|
|||
local default_config = require("lspconfig.server_configurations." .. server_name).default_config
|
||||
return default_config.cmd
|
||||
end)()
|
||||
if vim.fn.executable(command[1]) ~= 1 then
|
||||
-- some servers have dynamic commands defined with on_new_config
|
||||
if type(command) == "table" and type(command[1]) == "string" and vim.fn.executable(command[1]) ~= 1 then
|
||||
Log:debug(string.format("[%q] is either not installed, missing from PATH, or not executable.", server_name))
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue