summary refs log tree commit diff
diff options
context:
space:
mode:
-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