Stream: t-compiler/wg-rls-2.0

Topic: Rust-analyzer and vim/neo-vim


blitzerr (May 05 2019 at 17:21, on Zulip):

Has someone tried using RA with nvim? Can they please share how they are using it ?

Hoang Luu (May 05 2019 at 23:40, on Zulip):

I'm using it with https://github.com/autozimu/LanguageClient-neovim atm, it doesn't support all features of RA yet, but still usable

Hoang Luu (May 05 2019 at 23:48, on Zulip):

just change config to:

let g:LanguageClient_serverCommands = {
    \ 'rust': ['rustup', 'run', 'stable', 'ra_lsp_server'],
    \ }
blitzerr (May 06 2019 at 02:15, on Zulip):

Thanks @Hoang Luu

Hoang Luu (May 06 2019 at 02:18, on Zulip):

I’m also investigating on adding custom features of RA like syntaxTree to vim as well

Hoang Luu (May 06 2019 at 02:18, on Zulip):

We could share configs here

qmx (May 06 2019 at 02:32, on Zulip):

I'm interested as well

blitzerr (May 07 2019 at 01:23, on Zulip):

We could share configs here

That would be awesome @Hoang Luu

matklad (May 07 2019 at 08:42, on Zulip):

We have some VIM config here: https://github.com/rust-analyzer/rust-analyzer/issues/769#issuecomment-463524385

matklad (May 07 2019 at 08:42, on Zulip):

We have a docs/user folder, adding an vim.md there would be very appreciated ;)

csmoe (May 07 2019 at 08:52, on Zulip):

@matklad while using rust-analyzer with languageclient-neovim, it's really slow to load the workspace with 450 packages, it takes me almost 45-60 seconds.

matklad (May 07 2019 at 08:53, on Zulip):

@csmoe yeah, initial load is expected to be slowish

matklad (May 07 2019 at 08:54, on Zulip):

We definitely could optimize this more or cache workspaces across restarts, but this hansn't been done yet

blitzerr (May 09 2019 at 05:19, on Zulip):

We have some VIM config here: https://github.com/rust-analyzer/rust-analyzer/issues/769#issuecomment-463524385

@Jean Mertz link in @matklad 's suggestion is not working for me. It gives me error if the line of rust is not complete, but does not give me suggestion in snippet. Deoplete suggests words already in the file which vim already does with ctrl+n. But I am expecting if I write, as shown in the gif in the comment, std::me then it suggests mem etc.

Jean Mertz (May 09 2019 at 05:21, on Zulip):

FYI, I’m working on improving RA support in Vim, see (for starters): https://github.com/autozimu/LanguageClient-neovim/pull/815

blitzerr (May 09 2019 at 05:22, on Zulip):

huh ! it does not do that for me in vs-code either.

blitzerr (May 09 2019 at 05:22, on Zulip):

FYI, I’m working on improving RA support in Vim, see (for starters): https://github.com/autozimu/LanguageClient-neovim/pull/815

@Jean Mertz Thank you sir. Very much appreciate that.

Jean Mertz (May 09 2019 at 05:24, on Zulip):

I’ll see if I can get my Vim config online sometime this weekend.

Jean Mertz (May 09 2019 at 05:25, on Zulip):

Also, if you want to see how I use Vim + RA (and compare that to how things are working for you), I record myself working on Rust projects, using Vim and RA here: https://www.youtube.com/channel/UCj00KMrSJjHRL2F75ERgHXA

Jean Mertz (May 09 2019 at 05:26, on Zulip):

(I’ve got some episodes of me working on the LanguageClient Pull Request I mentioned above, that I haven’t edited/uploaded yet)

blitzerr (May 09 2019 at 13:16, on Zulip):

@Jean Mertz thanks a lot for the link and video. Your vimconfig will be greatly appreciated

Peter K (Jun 07 2019 at 00:46, on Zulip):

Hello! Has anybody managed to make rust-analyzer work with coc.nvim instead of LanguageClient-neovim?

csmoe (Jun 07 2019 at 00:50, on Zulip):

@Peter K check out the user doc in the repo

Peter K (Jun 07 2019 at 00:56, on Zulip):

I did that and coc runs the ra server alright, but after that I'm lost. I was curious if somebody had a working config to steal

Last update: Nov 12 2019 at 16:05UTC