summaryrefslogtreecommitdiff
path: root/config/init-lsp.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/init-lsp.el')
-rw-r--r--config/init-lsp.el11
1 files changed, 6 insertions, 5 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"))))