From: kohnish Date: Sat, 15 Jan 2022 21:42:47 +0000 (+0100) Subject: Check for executability for a LSP command instead X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=baf84f0860c77ec1f915c49bfb5e8ff7e34b34ac;p=vim-lsp.git Check for executability for a LSP command instead --- diff --git a/autoload/lsp.vim b/autoload/lsp.vim index 18a84fb..fdaa0eb 100644 --- a/autoload/lsp.vim +++ b/autoload/lsp.vim @@ -450,7 +450,7 @@ def lsp#addServer(serverList: list>) server['omnicompl'] = v:true endif - if !server.path->filereadable() + if !executable(server.path) util.ErrMsg('Error: LSP server ' .. server.path .. ' is not found') return endif