From cb4e571d0f73238b34359694a4960e9d2ee03b9b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 25 Feb 2021 16:46:12 +0000 Subject: modules/emacs: set rust-analyzer "use" style --- modules/workstation/emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/workstation/emacs') diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el index 5ae67daa7d11..0ed7e4151e17 100644 --- a/modules/workstation/emacs/init.el +++ b/modules/workstation/emacs/init.el @@ -99,6 +99,10 @@ (define-key eglot-mode-map (kbd "C-c e a") #'eglot-code-actions) (define-key eglot-mode-map (kbd "C-c e r") #'eglot-rename)) +;; Tell rust-analyzer not to allow colons inside Rust import. +(setq-default eglot-workspace-configuration + '((:rust-analyzer . (:assist (:importMergeBehaviour "last"))))) + ;;; Environment ;;; ;; Provide a way to turn paging back on for modes like terminal emulators. -- cgit 1.4.1