fixup! python: refactor

This commit is contained in:
Lucius Hu 2021-04-04 14:50:10 -04:00 committed by duianto
parent 9115fd9824
commit f7c2ce8fb6
1 changed files with 3 additions and 1 deletions

View File

@ -90,8 +90,10 @@
(if (configuration-layer/layer-used-p 'lsp)
(progn
(require (pcase python-lsp-server
('pyls 'lsp-pyls)
('mspyls 'lsp-python-ms)
('pyright 'lsp-pyright)))
('pyright 'lsp-pyright)
(x (user-error "Unknown value for `python-lsp-server': %s" x))))
(lsp))
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))