this post was submitted on 21 Jul 2023
21 points (100.0% liked)

Neovim

2125 readers
1 users here now

founded 1 year ago
MODERATORS
 

I'm thinking of switching from VSC to VIM because VSC is too heavy in term of ressources usage.

Currently, I use the VSC + VIM extension and I'm pretty happy.

But nowadays, I avoid to open some monorepo projects because it takes too much time and I use the Github explorer instead. Also, I use the mouse too much.

So I finally took the decision to give a try to Neovim.

I initially started with SpaceVIM and it was a good experience. But there is too much magic for me. Also, I have the feeling to not learn VIM.

So I setup CoC with VIM-plug + NerdTree. It looks promising.

Do you have any tips for me?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 1 year ago (4 children)

Hi there, glad to see new users. I would recommend using LSP instead of Coc if your language is supported. A good starting point could be with Lsp-Zero plugin, it can be used with some dependencies and you can customize to your liking. A bit of a steep learning curve maybe, but the result is worth the effort. Also, using Packer for plugin management might be a good alternative, and learning lua in the process. I finally converted my vim config into Lua, I can send a link to my repo if you want to take some inspiration.

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

I might want to see your repo for sure !

Is it better to use Lua for the config ? I feel Vimscript is kinda old school way but there is more ressource on the internet.

Also, why do you recommend LSP instead of CoC ?

[–] [email protected] 2 points 1 year ago

Not op; I don't use LSPZero but the built in support with lsp-installer. I like to think I've organized my repo decently well so hopefully it can help you out: repo

I used to use CoC a looong time ago so I don't know if this has changed since but I've heard LSP is faster than CoC and has better support since it's the defacto standard for neovim (and built in). Additionally it uses the same binaries used by something like vscode for the analysis so it's part of a larger ecosystem that will get support

load more comments (1 replies)
load more comments (2 replies)