So I've been tweaking my rust-mode configuration but i'm hitting some problems integrating rust-analyzer that I don't quite understand. For some reason, it seems like
M-x lsp now wants to run rls instead of rust-analyzer. @Florian Diebold maybe you have some clue why?
This is my .emacs file right now:
(defun niko-rust-mode-hook () (camelCase-mode 1) (lsp) ) (defun niko-setup-rust-mode () (straight-use-package '(rust-mode :type git :host github :repo "rust-lang/rust-mode")) (add-hook 'rust-mode-hook 'niko-rust-mode-hook) (require 'rust-mode) (require 'ra-emacs-lsp) ) (niko-setup-rust-mode)
feel free to tell me some more elegant way to do things...
If I run things with
C-u M-x lsp and select rust-analyzer, everything seems to work ok
actually I think I just encountered the same problem after I upgraded lsp-mode -- try
(setq lsp-rust-server 'rust-analyzer) during setup
lsp-mode now comes with RA support
do I no longer need ra-emacs-lsp?
ah well I guess it has other keybindings
though tbh I always forget to use those
I guess not, though I don't know whether they integrated everything
well, that seems to work anyway
I had some other weird problem I don't understand
where I had a
and lsp kept looking for
I eventually just renamed the directory :P
I have no idea where it was getting that from...
but I guess that's not related to rust-analyzer
huh, yeah that's weird
I think maybe when I did
git clone I called it chalk and then renamed it to chalk-2? not sure
chalk-1 seems to work ok :)
Perhaps the bug is in the use of emacs rather than vim? (:P)
You mean evil mode, right?
No, I mean emacs is the bug