mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user