Enable mypy and ruff pylsp plugins

This commit is contained in:
Adam Goldsmith 2023-05-04 00:26:13 -04:00
parent 9e09f7e05f
commit 5f3d421593
1 changed files with 6 additions and 0 deletions

View File

@ -606,6 +606,12 @@
(when (executable-find "rust-analyzer")
(setq lsp-rust-server 'rust-analyzer))
(lsp-register-custom-settings
'(("pylsp.plugins.pyls_mypy.enabled" t t)
("pylsp.plugins.pyls_mypy.live_mode" nil t)
("pylsp.plugins.ruff.enabled" t t)))
(defun lsp-compile-in-root ()
"Do compilation in the root dir of a project"
(interactive)