diff --git a/ansible/roles/emacs/files/elisp/lang-rust.el b/ansible/roles/emacs/files/elisp/lang-rust.el index c6160ae..01c7962 100644 --- a/ansible/roles/emacs/files/elisp/lang-rust.el +++ b/ansible/roles/emacs/files/elisp/lang-rust.el @@ -40,7 +40,12 @@ (eglot-ensure) (let ((rust-analyzer-command (locate-rust-analyzer))) (when rust-analyzer-command - (add-to-list 'eglot-server-programs `(rust-ts-mode . (,rust-analyzer-command))) + ;; (add-to-list 'eglot-server-programs `(rust-ts-mode . (,rust-analyzer-command))) + (add-to-list 'eglot-server-programs `(rust-ts-mode . (,rust-analyzer-command :initializationOptions (:imports (:granularity (:enforce t :group "item") + :merge (:glob nil) + :prefix "self") + :inlayHints (:maxLength nil) + :workspace (:symbol (:search (:limit 1024))))))) ) ) (add-hook 'before-save-hook 'eglot-format-buffer nil 'local) @@ -76,7 +81,7 @@ ;; ;; ( ;; (rust-ts-mode . ((eglot-workspace-configuration -;; . (:rust-analyzer (:cargo (:features "compare")))) +;; . (:rust-analyzer (:cargo (:noDefaultFeatures t :features "compare")))) ;; )) ;; )