diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-02-25 16:46:12 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-02-25 16:46:12 +0000 |
commit | cb4e571d0f73238b34359694a4960e9d2ee03b9b (patch) | |
tree | 46d3ee493047a115e1b362ea4e41196b36bea30e /modules/workstation/emacs/init.el | |
parent | ad14d2b98fac752a267bc41483d1d8accacdceab (diff) | |
download | nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.gz nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.bz2 nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.lz nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.xz nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.tar.zst nixlib-cb4e571d0f73238b34359694a4960e9d2ee03b9b.zip |
modules/emacs: set rust-analyzer "use" style
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r-- | modules/workstation/emacs/init.el | 4 |
1 files changed, 4 insertions, 0 deletions
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. |