rust: switch from rust-mode to rustic
This commit is contained in:
parent
1b1643a1a5
commit
7ee7f05468
25
init.el
25
init.el
@ -654,23 +654,24 @@ inserted between the braces between the braces."
|
||||
|
||||
;;; ### Rust ###
|
||||
|
||||
(use-package cargo
|
||||
:defer)
|
||||
;;; If you have [Rustup](https://www.rust-lang.org/learn/get-started)
|
||||
;;; than you should install component `rls` with the command
|
||||
;;;
|
||||
;;; ```
|
||||
;;; $ rustup component add rls
|
||||
;;; ```
|
||||
;;;
|
||||
;;; and then add to config file
|
||||
|
||||
(use-package racer
|
||||
:defer)
|
||||
(use-package lsp-mode
|
||||
:commands lsp)
|
||||
|
||||
(use-package rust-mode
|
||||
(use-package rustic
|
||||
:init
|
||||
(setq company-tooltip-align-annotations t
|
||||
rust-format-on-save t)
|
||||
:config
|
||||
(add-hook 'rust-mode-hook #'company-mode)
|
||||
(add-hook 'rust-mode-hook #'cargo-minor-mode)
|
||||
(add-hook 'rust-mode-hook #'racer-mode)
|
||||
(add-hook 'racer-mode-hook #'eldoc-mode)
|
||||
rustic-format-on-save t)
|
||||
:bind
|
||||
(:map rust-mode-map
|
||||
(:map rustic-mode-map
|
||||
("C-i" . company-indent-or-complete-common)))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user