add rust packages
This commit is contained in:
parent
f29f4e7a8a
commit
96cf15be7e
|
@ -49,4 +49,23 @@
|
|||
(setq-default c-ts-mode-indent-style 'linux)
|
||||
(setq-default c-ts-mode-indent-offset tab-width))
|
||||
|
||||
(use-package rust-mode
|
||||
:ensure t
|
||||
:bind
|
||||
(("C-c C-r C-r" . 'lsp-rust-analyzer-run)
|
||||
("C-c C-r C-e" . 'lsp-rust-analyzer-rerun)
|
||||
("C-c C-r C-d" . 'lsp-rust-analyzer-debug)
|
||||
("C-c C-r C-t" . 'lsp-rust-analyzer-related-tests))
|
||||
:init
|
||||
(setq rust-mode-treesitter-derive t))
|
||||
|
||||
(use-package rustic
|
||||
:ensure t
|
||||
:after rust-mode)
|
||||
|
||||
(use-package cargo
|
||||
:ensure t
|
||||
:after rustic
|
||||
:init
|
||||
(add-hook 'rust-mode-hook 'cargo-minor-mode)
|
||||
(add-hook 'rust-ts-mode-hook 'cargo-minor-mode))
|
||||
|
|
|
@ -155,6 +155,7 @@
|
|||
'("\\*Messages\\*"
|
||||
"Output\\*$"
|
||||
"\\*Async Shell Command\\*"
|
||||
"^\\*Cargo"
|
||||
;;help-mode
|
||||
compilation-mode))
|
||||
(popper-mode t)
|
||||
|
|
Loading…
Reference in a new issue