Skip to content

Commit

Permalink
lang/python: autoload lsp-python-ms setup/update commands
Browse files Browse the repository at this point in the history
And set lsp-python-ms-python-executable-cmd a little sooner, to make it
easier for folks to change.
  • Loading branch information
hlissner committed Dec 28, 2019
1 parent 66b005a commit dafa4de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/lang/python/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dafa4de

Please sign in to comment.