tools/lsp: start lsp server unconditionally
Part 2 of f6d3ee588
, in order for server restarting to work, since
shutting down the server doesn't turn off lsp-mode.
This commit is contained in:
parent
f6d3ee5889
commit
16a17ad970
1 changed files with 20 additions and 21 deletions
|
@ -74,7 +74,6 @@ been moved out to their respective modules, or these hooks:
|
|||
Also logs the resolved project root, if found."
|
||||
:override #'lsp
|
||||
(interactive "P")
|
||||
(if (bound-and-true-p lsp-mode) t
|
||||
(require 'lsp-mode)
|
||||
(when lsp-auto-configure
|
||||
(require 'lsp-clients))
|
||||
|
@ -94,7 +93,7 @@ Also logs the resolved project root, if found."
|
|||
(apply #'concat
|
||||
(mapcar
|
||||
(lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
||||
lsp--buffer-workspaces)))))))
|
||||
lsp--buffer-workspaces))))))
|
||||
|
||||
;; Don't prompt to restart LSP servers while quitting Emacs
|
||||
(add-hook! 'kill-emacs-hook (setq lsp-restart 'ignore)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue