DEV Community

Discussion on: Show and tell: Show off your vim setup 🚀

Collapse
jwkicklighter profile image
Jordan Kicklighter

Not sharing a setup, but curious from anyone around here mentioning COC: how is LSP integration in Vim? Curious about JS/TS, VueJS, Ruby, and any other languages people have tried. The tooling is one of the reasons I stick with VS Code.

Collapse
jcsh profile image
Justin Ho

I've used VS Code and I think coc is just as good at LSP for JS, React snippets and C# (only languages I've been using since switch).

In addition it's the most familiar since the eslint and prettier plugins gives you the same warnings and formatting as you would running the linter/ formatter in cmd.

The biggest hurdle is to learn how to use vim though.

Collapse
jwkicklighter profile image
Jordan Kicklighter

I'm very comfortable with Vim, and I use the plugin in vs code. I'd go back to Vim if these plugins make the experience similar. Thanks for the feedback

Thread Thread
jcsh profile image
Justin Ho

Sorry I didn't mean to imply you don't know how to use vim.

I meant that I'm not even that comfortable with vim and still need to remind myself to not hold down 'j' and use the line numbers 😅

Thread Thread
jwkicklighter profile image
Jordan Kicklighter

Oh no, I didn't take it that way! Just clarifying that the Vim part is what I want in my life, but the other features are keeping me in VS Code.

And don't worry, I've been using Vim for years and still catch myself holding down j. Then I catch it, move back up, and use a line number to reinforce the better habits.

Collapse
reobin profile image
Robin Gagnon Author

I will agree with Justin that vim + coc is just as good at LSP than vscode.

It uses extensions for languages so you add the ones you work with and they get loaded when a file of that language opens.

There are extensions for all the languages you listed so you should be golden.

Good luck!

Collapse
zarszz profile image
Ganjar Gingin Tahyudin

how to can debug some go/js/python/ruby projects in vim/nvim ? i just confused because of that ...