From 5f3d4215932c051776a9081baa3049c526f83c9e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 4 May 2023 00:26:13 -0400 Subject: [PATCH] Enable mypy and ruff pylsp plugins --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f5355c2..286bd2b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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)