Fix Rust lsp setup

This commit is contained in:
Jeremy Dormitzer 2019-11-07 12:07:13 -05:00
parent 8be52d7e17
commit 93058bc5cd

View File

@ -1581,15 +1581,12 @@ Use LSP if [[https://github.com/mads-hartmann/bash-language-server][bash-languag
#+END_SRC
* Rust
#+BEGIN_SRC emacs-lisp
(use-package lsp-rust
:after (lsp-mode rust-mode)
:config
(add-hook 'rust-mode-hook #'lsp))
(use-package rust-mode
:mode "\\.rs\\'"
:general
(rust-mode-map "C-c <tab>" #'rust-format-buffer))
(rust-mode-map "C-c <tab>" #'rust-format-buffer)
:config
(add-hook 'rust-mode-hook #'lsp))
(use-package cargo