Don't start the lsp server until after mspyls is optionally required

Otherwise, lsp will attempt to use pyls when the user wanted to use mspyls
This commit is contained in:
lsp 2019-09-18 17:39:58 +02:00 committed by smile13241324
parent 556433f95c
commit 054856be3d
2 changed files with 3 additions and 2 deletions

View File

@ -2353,6 +2353,7 @@ Other:
- Various fixes for =lsp-python-ms= setup (thanks to Trapez Breen)
- Added lazy loading of =lsp-python-ms= (thanks to Ying Qu)
- Make pylookup makefile use correct shell (thanks to Koray Al)
- Fix lazy loading of =lsp-python-ms= (thanks to lsp-ableton)
**** Racket
- Restore smart closing paren behavior in racket-mode (thanks to Don March)
- Updated racket logo (thanks to Vityou)

View File

@ -62,9 +62,9 @@
"Setup lsp backend."
(if (configuration-layer/layer-used-p 'lsp)
(progn
(lsp)
(when (eq python-lsp-server 'mspyls)
(require 'lsp-python-ms)))
(require 'lsp-python-ms))
(lsp))
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile."))
(if (configuration-layer/layer-used-p 'dap)
(progn