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

View File

@ -606,6 +606,12 @@
(when (executable-find "rust-analyzer") (when (executable-find "rust-analyzer")
(setq lsp-rust-server '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 () (defun lsp-compile-in-root ()
"Do compilation in the root dir of a project" "Do compilation in the root dir of a project"
(interactive) (interactive)