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.
This commit is contained in:
Henrik Lissner 2019-12-28 13:52:15 -05:00
parent 66b005aa18
commit dafa4deef4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -283,11 +283,13 @@ called.")
(use-package! lsp-python-ms (use-package! lsp-python-ms
:when (featurep! +lsp) :when (featurep! +lsp)
:after (python lsp-clients) :after (python lsp-clients)
:init :preface
(setq lsp-python-ms-dir (concat doom-etc-dir "mspyls/")) (autoload 'lsp-python-ms-update-server "lsp-python-ms" nil t)
(autoload 'lsp-python-ms-setup "lsp-python-ms" nil t)
(after! python (after! python
(setq lsp-python-ms-python-executable-cmd python-shell-interpreter)) (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 ;; 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 ;; this on causes a "wrong number of arguments: nil 0" error, because of