From f7c2ce8fb6ddbfd64835f40dc000c30e628f0a79 Mon Sep 17 00:00:00 2001 From: Lucius Hu Date: Sun, 4 Apr 2021 14:50:10 -0400 Subject: [PATCH] fixup! python: refactor --- layers/+lang/python/funcs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/+lang/python/funcs.el b/layers/+lang/python/funcs.el index 81b35a2a09e4..75b9c550cc79 100644 --- a/layers/+lang/python/funcs.el +++ b/layers/+lang/python/funcs.el @@ -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.")))