]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Check for executability for a LSP command instead
authorkohnish <kohnish@gmx.com>
Sat, 15 Jan 2022 21:42:47 +0000 (22:42 +0100)
committerkohnish <kohnish@gmx.com>
Sat, 15 Jan 2022 21:43:15 +0000 (22:43 +0100)
autoload/lsp.vim

index 18a84fb3e457a60a11176983e15b53a6ed0e21b4..fdaa0eb5a160edacf00bf6d2ada9d891e612c4d5 100644 (file)
@@ -450,7 +450,7 @@ def lsp#addServer(serverList: list<dict<any>>)
       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