mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
No-op (lsp) if already enabled #3390
`lsp-deferred` calls `lsp` and `lsp` seems to do something expensive whether or not lsp-mode is already active. Over TRAMP, this is much too expensive, so we no-op lsp-deferred if lsp-mode is already active.
This commit is contained in:
@ -6,4 +6,5 @@
|
||||
(interactive)
|
||||
(if (featurep! +eglot)
|
||||
(eglot-ensure)
|
||||
(lsp-deferred)))
|
||||
(unless (bound-and-true-p lsp-mode)
|
||||
(lsp-deferred))))
|
||||
|
Reference in New Issue
Block a user