feat: format Rust buffers on save

This commit is contained in:
Muhammad Nauman Raza 2022-11-16 21:54:13 +00:00
parent 16ebdead10
commit d0f2c06659
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31

View file

@ -38,8 +38,10 @@
(use-package rustic
:custom
(rustic-format-trigger 'on-save) ; Format buffer on save
(rustic-lsp-client 'eglot)) ; Make eglot the default LSP client
;; Disable flymake for eglot - in favour of flycheck
(add-hook 'eglot--managed-mode-hook (lambda () (flymake-mode -1)))