summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-23 19:24:18 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-23 19:24:36 -0700
commit50ec95af189021817b7699a8e6033ba38f029e44 (patch)
treebc4ebd72834c489b79c3d50d682fa862962bdc31
parentset a background color for comments (diff)
downloademacs.d-50ec95af189021817b7699a8e6033ba38f029e44.tar.gz
trying to rely on ruff for python
-rw-r--r--config/init-lsp.el11
-rw-r--r--config/init-python.el4
2 files changed, 6 insertions, 9 deletions
diff --git a/config/init-lsp.el b/config/init-lsp.el
index 9ad6f40..f0a536c 100644
--- a/config/init-lsp.el
+++ b/config/init-lsp.el
@@ -12,14 +12,15 @@
   :bind (:map eglot-mode-map
               ("C-c l a" . eglot-code-actions)
               ("C-c l r" . eglot-rename)
-	      ("C-c l f" . eglot-format))
+	      ("C-c l f" . eglot-format-buffer))
   :config
   (setq eglot-autoshutdown t)
   (setq-default eglot-workspace-configuration
-                '((gopls
-		   (usePlaceholders . t)
-		   (staticcheck . t)
-		   (completeUnimported . t))))
+                '(:pylsp (:plugins (:ruff (:enabled t)))
+                  :gopls (:usePlaceholders t
+					   :staticcheck t
+					   :completeUnimported t
+					   :matcher "CaseSensitive")))
 
   ;; uses https://github.com/nix-community/nixd for the LSP server instead of rnix
   (add-to-list 'eglot-server-programs '(nix-mode . ("nixd"))))
diff --git a/config/init-python.el b/config/init-python.el
index c965602..6a4372a 100644
--- a/config/init-python.el
+++ b/config/init-python.el
@@ -15,10 +15,6 @@
   :ensure t
   :hook (python-mode . blacken-mode))
 
-(use-package py-isort
-  :ensure t
-  :commands (py-isort-buffer py-isort-region))
-
 (provide 'init-python)
 
 ;;; init-python.el ends here