mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
bump: :tools lsp
emacs-lsp/lsp-mode@41173dca4d -> emacs-lsp/lsp-mode@3d6a01dde9 joaotavora/eglot@55c13a9137 -> joaotavora/eglot@28092ba3af Ref: #5904 Fix: #5927 Close: #5928 Close: #5933 Close: #5945
This commit is contained in:
@@ -7,12 +7,6 @@
|
||||
"The backends to prepend to `company-backends' in `lsp-mode' buffers.
|
||||
Can be a list of backends; accepts any value `company-backends' accepts.")
|
||||
|
||||
(defvar +lsp-prompt-to-install-server t
|
||||
"If non-nil, prompt to install a server if no server is present.
|
||||
|
||||
If set to `quiet', suppress the install prompt and don't visibly inform the user
|
||||
about it (it will be logged to *Messages* however).")
|
||||
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
@@ -127,23 +121,6 @@ server getting expensively restarted when reverting buffers."
|
||||
(+lsp-optimization-mode -1))))
|
||||
lsp--cur-workspace))))
|
||||
|
||||
(defadvice! +lsp-dont-prompt-to-install-servers-maybe-a (fn &rest args)
|
||||
:around #'lsp
|
||||
(when (buffer-file-name)
|
||||
(require 'lsp-mode)
|
||||
(lsp--require-packages)
|
||||
(if (or (lsp--filter-clients
|
||||
(-andfn #'lsp--matching-clients?
|
||||
#'lsp--server-binary-present?))
|
||||
(not (memq +lsp-prompt-to-install-server '(nil quiet))))
|
||||
(apply fn args)
|
||||
;; HACK `lsp--message' overrides `inhibit-message', so use `quiet!'
|
||||
(let ((doom-debug-p
|
||||
(or doom-debug-p
|
||||
(not (eq +lsp-prompt-to-install-server 'quiet)))))
|
||||
(doom-shut-up-a #'lsp--info "No language server available for %S"
|
||||
major-mode)))))
|
||||
|
||||
(when (featurep! :ui modeline +light)
|
||||
(defvar-local lsp-modeline-icon nil)
|
||||
|
||||
|
Reference in New Issue
Block a user