Make a few LSP features opt-in
For the sake of speed and reliability. Support for some of these features are poorly implemented in some servers, and many are redundant with mechanisms already available in Emacs/Doom.
This commit is contained in:
parent
5c3d54f19b
commit
d40e5dff4e
1 changed files with 13 additions and 0 deletions
|
@ -16,6 +16,7 @@ excluded servers' identifiers to `+lsp-capf-blacklist'.")
|
|||
"Language servers listed here will always use the `company-lsp' backend,
|
||||
irrespective of what `+lsp-company-backend' is set to.")
|
||||
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
|
||||
|
@ -36,6 +37,18 @@ irrespective of what `+lsp-company-backend' is set to.")
|
|||
lsp-groovy-server-install-dir (concat lsp-server-install-dir "lsp-groovy/")
|
||||
lsp-intelephense-storage-path (concat doom-cache-dir "lsp-intelephense/"))
|
||||
|
||||
;; Disable LSP's superfluous, expensive and/or debatably unnecessary features.
|
||||
;; Some servers implement these poorly. Better to just rely on Emacs' native
|
||||
;; mechanisms and make these opt-in.
|
||||
(setq lsp-enable-folding nil
|
||||
;; Potentially slow
|
||||
lsp-enable-file-watchers nil
|
||||
lsp-enable-text-document-color nil
|
||||
lsp-enable-semantic-highlighting nil
|
||||
;; Don't modify our code without our permission
|
||||
lsp-enable-indentation nil
|
||||
lsp-enable-on-type-formatting nil)
|
||||
|
||||
:config
|
||||
(set-lookup-handlers! 'lsp-mode :async t
|
||||
:documentation #'lsp-describe-thing-at-point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue