mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -16,6 +16,7 @@ excluded servers' identifiers to `+lsp-capf-blacklist'.")
|
|||||||
"Language servers listed here will always use the `company-lsp' backend,
|
"Language servers listed here will always use the `company-lsp' backend,
|
||||||
irrespective of what `+lsp-company-backend' is set to.")
|
irrespective of what `+lsp-company-backend' is set to.")
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Packages
|
;;; 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-groovy-server-install-dir (concat lsp-server-install-dir "lsp-groovy/")
|
||||||
lsp-intelephense-storage-path (concat doom-cache-dir "lsp-intelephense/"))
|
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
|
: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
|
||||||
|
Reference in New Issue
Block a user