OmniSharp / omnisharp-vim

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

Not an editor command: OmniSharp* #848

Closed gabrielkunkel closed 1 year ago

gabrielkunkel commented 1 year ago

NeoVim (or any kind of vim) noob here.

I followed a video tutorial to get packer and VonHeikemen/lsp-zero installed (and a couple other things). lsp-zero includes Mason and I installed OmniSharp, believing I could just dive into a cs file and start firing commands. ...No good.

I'm on a MacBook Pro with Ventura installed. :echo &ft gives me: cs :scriptnames does NOT list OmniSharp scripts at all

Before I go down any rabbit holes, I thought I would ask for some guidance.

Do I need to do more here than just install with Mason? What are my next steps?

...Any direction would be appreciated. Thanks so much!

nickspoons commented 1 year ago

lsp-zero is for configuring neovim's built in LSP functionality. This repo (omnisharp-vim) is a standalone language server client, so essentially is at the same level as neovim LSP and lsp-zero, but a different way of doing it.

Both omnisharp-vim and neovim LSP use the same omnisharp-roslyn language server.

So I don't know exactly what you installed or how but it doesn't sound like you've installed omnisharp-vim, and it doesn't sound like you actually want omnisharp-vim either. You want to install the omnisharp-roslyn server, and let lsp-zero configure it for you.

I don't have any experience with those things and they don't have anything to do with this project so I can't really help you sorry. Here's the neovim documentation for how omnisharp-roslyn integration should be configured:

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#omnisharp

gabrielkunkel commented 1 year ago

Thanks!