mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Have lsp! return non-nil if successful
And fix an issue where +javascript-init-lsp-or-tide-maybe-h would reference lsp-mode in the rare case where lsp-mode isn't defined (likely because the user forgot to run `doom refresh` after enabling the :tools lsp module).
This commit is contained in:
@ -21,10 +21,10 @@ been moved out to their respective modules, or these hooks:
|
||||
(lsp--try-project-root-workspaces
|
||||
(equal arg '(4))
|
||||
(and arg (not (equal arg 1)))))))
|
||||
(lsp-mode 1)
|
||||
(lsp--info
|
||||
"Connected to %s."
|
||||
(apply
|
||||
#'concat (mapcar
|
||||
(lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
||||
lsp--buffer-workspaces))))))
|
||||
(prog1 (lsp-mode 1)
|
||||
(lsp--info
|
||||
"Connected to %s."
|
||||
(apply
|
||||
#'concat (mapcar
|
||||
(lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
||||
lsp--buffer-workspaces)))))))
|
||||
|
Reference in New Issue
Block a user