Add LSP Rust configuration

main
Sergio Alvariño 3 years ago
parent 10adc96535
commit 26b8cdefd1

@ -575,6 +575,7 @@ Autocompletion with [[https://company-mode.github.io/][company]]
(use-package company
:init
(global-company-mode t)
;;(setq company-backends '((company-files company-keywords company-capf company-dabbrev-code company-etags company-dabbrev)))
:config
;; (setq company-idle-delay 0)
@ -587,6 +588,7 @@ Autocompletion with [[https://company-mode.github.io/][company]]
("C-<iso-lefttab>" . company-complete-common-or-cycle)
)
#+end_src
** company-quickhelp
In case you want popup help instead of status line help
#+begin_src emacs-lisp
@ -597,15 +599,6 @@ Autocompletion with [[https://company-mode.github.io/][company]]
)
#+end_src
** company-lsp (**DEPRECATED**)
#+begin_src emacs-lisp
;; (use-package company-lsp
;; :ensure
;; :config
;; (push 'company-lsp company-backends)
;; )
#+end_src
* org-mode
** org-bullets
Nice bullets for org-mode
@ -777,7 +770,6 @@ use for your debug templates!
;; )
#+end_src
** go
**WARNING**: you need to install =gopls= in your system.
**WARNING**: =company-go= is deprecated, don't use it
@ -832,13 +824,13 @@ References:
** Rust
- [[https://robert.kra.hn/posts/2021-02-07_rust-with-emacs/][Robert Kra Emacs Rust Configuration]]
#+begin_src emacs-lisp
;; (use-package rust-mode
;; :hook ((rust-mode . lsp)
;; (rust-mode . lsp-lens-mode)
;; )
;; :custom
;; (rust-format-on-save t)
;; (lsp-rust-server 'rust-analyzer))
(use-package rust-mode
:hook ((rust-mode . lsp)
(rust-mode . lsp-lens-mode)
)
:custom
(rust-format-on-save t)
(lsp-rust-server 'rust-analyzer))
#+end_src
** Python

Loading…
Cancel
Save