We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2edca4 commit 52ad1d3Copy full SHA for 52ad1d3
lsp-ltex.el
@@ -398,7 +398,10 @@ This file is use to activate the language server."
398
(make-lsp-client
399
:new-connection (lsp-stdio-connection
400
#'lsp-ltex--server-command
401
- (lambda () (and (file-executable-p (lsp-ltex--server-entry)) (file-exists-p (lsp-ltex--server-entry)))))
+ (lambda () (let ((entry (lsp-ltex--server-entry)))
402
+ (and (file-exists-p entry)
403
+ (not (file-directory-p entry))
404
+ (file-executable-p entry)))))
405
:activation-fn (lambda (&rest _) (apply #'derived-mode-p lsp-ltex-active-modes))
406
:priority -2
407
:add-on? t
0 commit comments