mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
tools/lsp: noop lsp! if used more than once
This commit is contained in:
@ -11,6 +11,7 @@ been moved out to their respective modules, or these hooks:
|
|||||||
+ `+lsp|init-company' (on `lsp-mode-hook')
|
+ `+lsp|init-company' (on `lsp-mode-hook')
|
||||||
+ `+lsp|init-ui-flycheck-or-flymake' (on `lsp-ui-mode-hook')"
|
+ `+lsp|init-ui-flycheck-or-flymake' (on `lsp-ui-mode-hook')"
|
||||||
(require 'lsp-mode)
|
(require 'lsp-mode)
|
||||||
|
(unless lsp-mode
|
||||||
(when lsp-auto-configure
|
(when lsp-auto-configure
|
||||||
(require 'lsp-clients))
|
(require 'lsp-clients))
|
||||||
(when (and (buffer-file-name)
|
(when (and (buffer-file-name)
|
||||||
@ -22,4 +23,4 @@ been moved out to their respective modules, or these hooks:
|
|||||||
(lsp--info
|
(lsp--info
|
||||||
"Connected to %s."
|
"Connected to %s."
|
||||||
(apply #'concat (mapcar (lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
(apply #'concat (mapcar (lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
||||||
lsp--buffer-workspaces)))))
|
lsp--buffer-workspaces))))))
|
||||||
|
Reference in New Issue
Block a user