This was fixed upstream in emacs-lsp/lsp-mode#1135
This commit is contained in:
parent
851094cdd3
commit
1030f66c24
1 changed files with 5 additions and 16 deletions
|
@ -21,6 +21,11 @@ This can be a single company backend or a list thereof. It can be anything
|
||||||
;; project.
|
;; project.
|
||||||
(setq lsp-keep-workspace-alive nil)
|
(setq lsp-keep-workspace-alive nil)
|
||||||
|
|
||||||
|
;; For `lsp-clients'
|
||||||
|
(setq lsp-fsharp-server-install-dir (concat doom-etc-dir "lsp-fsharp/")
|
||||||
|
lsp-groovy-server-install-dir (concat doom-etc-dir "lsp-groovy/")
|
||||||
|
lsp-intelephense-storage-path (concat doom-cache-dir "lsp-intelephense/"))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(set-lookup-handlers! 'lsp-mode :async t
|
(set-lookup-handlers! 'lsp-mode :async t
|
||||||
:documentation 'lsp-describe-thing-at-point
|
:documentation 'lsp-describe-thing-at-point
|
||||||
|
@ -141,19 +146,3 @@ Also logs the resolved project root, if found."
|
||||||
(remove-hook 'company-mode-hook #'+lsp-init-company-h t))))
|
(remove-hook 'company-mode-hook #'+lsp-init-company-h t))))
|
||||||
:config
|
:config
|
||||||
(setq company-lsp-cache-candidates 'auto)) ;; cache candidates for better performance
|
(setq company-lsp-cache-candidates 'auto)) ;; cache candidates for better performance
|
||||||
|
|
||||||
|
|
||||||
(after! lsp-clients
|
|
||||||
(setq lsp-fsharp-server-install-dir (concat doom-etc-dir "lsp-fsharp/")
|
|
||||||
lsp-groovy-server-install-dir (concat doom-etc-dir "lsp-groovy/")
|
|
||||||
lsp-intelephense-storage-path (concat doom-cache-dir "lsp-intelephense/"))
|
|
||||||
|
|
||||||
(defadvice! +lsp-activate-for-js-shell-scripts-a (filename &optional _)
|
|
||||||
:after-until #'lsp-typescript-javascript-tsx-jsx-activate-p
|
|
||||||
(when (file-readable-p filename)
|
|
||||||
(with-temp-buffer
|
|
||||||
(insert-file-contents filename nil 0 64)
|
|
||||||
(save-match-data
|
|
||||||
(goto-char (point-min))
|
|
||||||
(and (looking-at "#![ \t]?\\([^ \t\n]*/bin/env[ \t]\\)?\\([^ \t\n]+\\)")
|
|
||||||
(member (match-string 2) '("node" "rhino" "gjs" "nodejs"))))))))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue