[Emacs] Disable lsp in rust for now
This commit is contained in:
parent
b1cfb44b4d
commit
796b9d1ac5
@ -2785,21 +2785,17 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package rust-mode
|
||||
:mode (("\\.rs\\'" . rust-mode))
|
||||
:hook (rust-mode . lsp)
|
||||
;; :hook (rust-mode . lsp)
|
||||
:preface
|
||||
(progn
|
||||
(defun imalison:rust-mode-hook ()
|
||||
(add-to-list 'flycheck-disabled-checkers 'rust-cargo)
|
||||
(add-to-list 'flycheck-disabled-checkers 'rust)
|
||||
(add-to-list 'flycheck-disabled-checkers 'rust-clippy)
|
||||
(setq rust-format-on-save t)))
|
||||
:config
|
||||
(progn
|
||||
(use-package toml-mode)
|
||||
|
||||
;; Add keybindings for interacting with Cargo
|
||||
(use-package cargo
|
||||
:hook (rust-mode . cargo-minor-mode))
|
||||
|
||||
(use-package flycheck-rust
|
||||
:config (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))
|
||||
(add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
|
||||
#+END_SRC
|
||||
*** haskell
|
||||
|
Loading…
Reference in New Issue
Block a user