[Emacs] Disable lsp in rust for now

This commit is contained in:
Ivan Malison 2022-04-19 00:54:24 -06:00
parent b1cfb44b4d
commit 796b9d1ac5
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2785,21 +2785,17 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package rust-mode (use-package rust-mode
:mode (("\\.rs\\'" . rust-mode)) :mode (("\\.rs\\'" . rust-mode))
:hook (rust-mode . lsp) ;; :hook (rust-mode . lsp)
:preface :preface
(progn (progn
(defun imalison:rust-mode-hook () (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))) (setq rust-format-on-save t)))
:config :config
(progn (progn
(use-package toml-mode) (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))) (add-hook 'rust-mode-hook 'imalison:rust-mode-hook)))
#+END_SRC #+END_SRC
*** haskell *** haskell