rust: switch from rust-mode to rustic

This commit is contained in:
Łukasz Pankowski 2019-12-09 22:44:31 +01:00
parent 1b1643a1a5
commit 7ee7f05468

27
init.el
View File

@ -654,24 +654,25 @@ inserted between the braces between the braces."
;;; ### Rust ### ;;; ### Rust ###
(use-package cargo ;;; If you have [Rustup](https://www.rust-lang.org/learn/get-started)
:defer) ;;; than you should install component `rls` with the command
;;;
;;; ```
;;; $ rustup component add rls
;;; ```
;;;
;;; and then add to config file
(use-package racer (use-package lsp-mode
:defer) :commands lsp)
(use-package rust-mode (use-package rustic
:init :init
(setq company-tooltip-align-annotations t (setq company-tooltip-align-annotations t
rust-format-on-save t) rustic-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)
:bind :bind
(:map rust-mode-map (:map rustic-mode-map
("C-i" . company-indent-or-complete-common))) ("C-i" . company-indent-or-complete-common)))
;;; ### Language server with Vala support ### ;;; ### Language server with Vala support ###