mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Use lsp-mode for rust
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
(require 'siren-folding)
|
||||
(require 'siren-highlight-indentation)
|
||||
(require 'siren-lsp)
|
||||
|
||||
(use-package rust-mode
|
||||
:mode "\\.rs\\'"
|
||||
@@ -23,6 +24,8 @@
|
||||
(defun siren-rust-mode-setup ()
|
||||
(setq rust-format-on-save t)
|
||||
|
||||
(company-mode +1)
|
||||
(lsp-mode)
|
||||
(hs-minor-mode 1)
|
||||
(hideshowvis-enable)
|
||||
(highlight-indentation-current-column-mode)
|
||||
@@ -35,21 +38,6 @@
|
||||
:after rust-mode
|
||||
:hook (flycheck-mode . flycheck-rust-setup))
|
||||
|
||||
(use-package racer
|
||||
:requires rust-mode company
|
||||
:commands racer-mode
|
||||
:bind (:map rust-mode-map
|
||||
("TAB" . company-indent-or-complete-common))
|
||||
|
||||
:hook
|
||||
(rust-mode . racer-mode)
|
||||
(racer-mode . eldoc-mode)
|
||||
(racer-mode . siren-racer-mode-setup)
|
||||
|
||||
:config
|
||||
(defun siren-racer-mode-setup ()
|
||||
(setq company-tooltip-align-annotations t)))
|
||||
|
||||
(use-package rust-playground)
|
||||
|
||||
(provide 'siren-rust)
|
||||
|
||||
Reference in New Issue
Block a user