Fix Rust lsp setup
This commit is contained in:
parent
8be52d7e17
commit
93058bc5cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user