From dafa4deef458fec0b8c2d69390e1492a72ca37ab Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 28 Dec 2019 13:52:15 -0500 Subject: [PATCH] lang/python: autoload lsp-python-ms setup/update commands And set lsp-python-ms-python-executable-cmd a little sooner, to make it easier for folks to change. --- modules/lang/python/config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 461f3d8db..e68bf692a 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -283,11 +283,13 @@ called.") (use-package! lsp-python-ms :when (featurep! +lsp) :after (python lsp-clients) - :init - (setq lsp-python-ms-dir (concat doom-etc-dir "mspyls/")) - + :preface + (autoload 'lsp-python-ms-update-server "lsp-python-ms" nil t) + (autoload 'lsp-python-ms-setup "lsp-python-ms" nil t) (after! python (setq lsp-python-ms-python-executable-cmd python-shell-interpreter)) + :init + (setq lsp-python-ms-dir (concat doom-etc-dir "mspyls/")) ;; HACK If you don't have python installed, then opening python buffers with ;; this on causes a "wrong number of arguments: nil 0" error, because of