Hacker News new | ask | show | jobs
by H1Supreme 2309 days ago
Why use VSCode at all then? I've found coc.nvim and language servers to be every bit as good as VSCode in terms of code completion and definitions.

I'm mostly writing Go, C, Javascript, and HTML/CSS. But, so far it's been working great. And, I'm a fairly recent convert to vim (neovim).

5 comments

For those that are unaware, it’s literally the same system underneath. Vscode talks to language servers to do all the work and they’ve architected the system in such a way that others can talk to them too. Coc.vim provides the plumbing to do that from vim. It’s a great project. Took me a while to get things configured properly but it’s been great for doing all my typescript work.
Is anyone aware of an 'opinionated' neovim distribution?

Something like spacemacs or Emacs Live, that takes care of all the configuration work to give a solid basis out of the box.

I've been dragging my feet on switching everything to nvim because I don't have 'awhile to get things configured properly' these days.

At least with coc.vim it's literally just a case of picking a vim package manager and using that to install it. Almost no configuration required, apart from `CocInstall`-ing whatever language servers you want.
The only thing which makes me not switch from VSCode to Vim is the debugger (specifically Node.js). I haven't found anything in Vim to make debugging pleasent. I hope there will be an easy to use Debug Adapter Protocol frontend impementation for Vim.
I switched because I found that it was a more coherent experience overall. With vim I was always editing my vimrc file and struggling to make plugins play well together.

That might be specific to my requirements/preferences or it might just be the fact that I am not skilled enough but in spite of issues (that I outlined in another comment https://news.ycombinator.com/item?id=22385285), I still find it more pleasant.

I use Vim but one thing that VSCode has that Vim does not is the idea of remote containers.

With VSCode, it's pretty nice and easy to get perfect auto-complete, definitions, etc. from code running in a container.

With Vim, AFAIK there's not anything near as seamless to do the same thing. In fact, I've found nothing that even tries to do it.

Yeah, ever since LSP became a thing (thank you TypeScript!), Vim got better with LSP clients. Soon, it will even be built into NeoVim!