summaryrefslogtreecommitdiff
path: root/config/init-lsp.el
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 /config/init-lsp.el
parentset a background color for comments (diff)
downloademacs.d-50ec95af189021817b7699a8e6033ba38f029e44.tar.gz
trying to rely on ruff for python
Diffstat (limited to '')
-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"))))