Add a keybinding to open rustdocs in browser

This commit is contained in:
Jeremy Dormitzer 2022-04-13 14:21:19 -04:00
parent bc85de1ad5
commit 908222a1b9

View File

@ -3,6 +3,9 @@
(use-package rust-mode
:mode (("\\.rs\\'" . rust-mode))
:config
(add-hook 'rust-mode-hook 'lsp-deferred))
(add-hook 'rust-mode-hook 'lsp-deferred)
(with-eval-after-load 'lsp-rust
(general-def rust-mode-map
"C-c C-c C-d" 'lsp-rust-analyzer-open-external-docs)))
(provide 'init-rust)