tools/lsp: minor refactor & doc revision

This commit is contained in:
Henrik Lissner 2020-08-22 15:31:38 -04:00
parent f83e6fe1cc
commit ffb21b18e5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 21 additions and 17 deletions

View file

@ -5,14 +5,15 @@
workspace buffer is closed.
This delay prevents premature server shutdown when a user still intends on
working on that project after closing the last buffer.")
working on that project after closing the last buffer, or when programmatically
killing and opening many LSP/eglot-powered buffers.")
;;
;;; Common
(defun +lsp-init-optimizations-h ()
"Deploys universal optimizations for `lsp-mode' and `eglot'."
(when (or (bound-and-true-p eglot--managed-mode)
(bound-and-true-p lsp-mode))
;; `read-process-output-max' is only available on recent development