From 50ec95af189021817b7699a8e6033ba38f029e44 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 23 Apr 2024 19:24:18 -0700 Subject: trying to rely on ruff for python --- config/init-lsp.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'config/init-lsp.el') 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")))) -- cgit 1.4.1