From e9332660976d684846b43c4385ab6e9a67b34c5e Mon Sep 17 00:00:00 2001 From: Raúl Benencia Date: Wed, 14 May 2025 08:26:41 -0700 Subject: emacs: pyton conf --- .emacs.d/rul-emacs.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.emacs.d/rul-emacs.org') diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org index 25f3b36..1ba5aae 100644 --- a/.emacs.d/rul-emacs.org +++ b/.emacs.d/rul-emacs.org @@ -1598,6 +1598,13 @@ on a single file. ;; Python (use-package blacken :ensure t :defer t) +(with-eval-after-load 'lsp-mode + (lsp-register-client + (make-lsp-client + :new-connection (lsp-stdio-connection '("ruff" "server")) + :activation-fn (lsp-activate-on "python") + :server-id 'ruff-lsp))) +(add-hook 'python-mode-hook #'lsp) ;; Terraform (use-package terraform-mode :ensure t :defer t) -- cgit v1.2.3