this post was submitted on 08 Jun 2023
24 points (100.0% liked)
Programming
568 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
neovim has built-in LSP support and it works so. SO. SO! much better than coc-rust-analyzer. Start with this repo. I promise you that it'll be a better experience for you. No node.js, only native code, and it's significantly faster. The coc LSP plugins are really intended for vim because it doesn't have asynchronous execution for plugins.
Totally agree with this, neovim with LSP is PERFECT! I had a lot of problem's with coc and it was terrible, one day it worked one day it had another problems... Recently i decided to try Neovim with lua so i followed this tutorial video. You should take a look, believe me.
I also had huge problems with it, and indeed LSP support is why I use neovim these days and not vanilla vim. I probably had problems similar to what you did: sometimes it'd work, often it wouldn't. And it was SO slow. I'm also using recent, powerful hardware: top of the line MacBook Pro, 16 core / 64 GB RAM Linux workstation, both on SSD/NVME storage. Once I switched to the built-in LSP, all my problems disappeared. I'm pretty happy with my current setup, and videos are hard for me to follow for tech stuff, but others who aren't already may want to look at the video.
I should point out that even this repo reinvents things that are already in vim: you don't need packer. Vanilla vim has package management now, all you need to do is put the plugins in a directory under
~/.vim/pack/whatever/start
. See:help packages
for more.