From baf84f0860c77ec1f915c49bfb5e8ff7e34b34ac Mon Sep 17 00:00:00 2001 From: kohnish Date: Sat, 15 Jan 2022 22:42:47 +0100 Subject: [PATCH] Check for executability for a LSP command instead --- autoload/lsp.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1