OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.72k stars 168 forks source link

Should I use this plugin at the same time as lspconfig? #860

Closed j0of closed 7 months ago

j0of commented 7 months ago

Hey there, newbie Neovim user here. I was able to set up C# with Neovim by configuring mason, lspconfig, and cmp. I saw this plugin and was wondering if I should prefer it over my current setup, or maybe even use it at the same time? Thanks!

nickspoons commented 7 months ago

Hi @j0of, you shouldn't run this plugin at the same time as using neovim's lspconfig. They both run their own versions of the same language server so using them together is overkill and will be confusing - you don't know which is providing completions, or suggesting diagnostics etc.

This plugin has been around a lot longer than lspconfig - or the language server protocol itself, or neovim :smile:. It has a custom integrations that you might prefer, such as vimspector for debugging. But if you're happy with the neovim LSP then just stick with that, you'll get a more consistent coding experience between C# and other LSP languages.

If I were you I'd try them both out and see what feels better.