this post was submitted on 08 Jun 2023
39 points (100.0% liked)

Programming

13361 readers
5 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (1 children)

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.

[–] [email protected] 3 points 1 year ago (1 children)

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.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

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.