Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an editor command: OmniSharp* #848

Closed
gabrielkunkel opened this issue Aug 17, 2023 · 2 comments
Closed

Not an editor command: OmniSharp* #848

gabrielkunkel opened this issue Aug 17, 2023 · 2 comments

Comments

@gabrielkunkel
Copy link

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
Copy link
Member

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
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants