Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coc-extensions/coc-omnisharp

OmniSharp integration for coc.nvim
https://github.com/coc-extensions/coc-omnisharp

Last synced: 5 days ago
JSON representation

OmniSharp integration for coc.nvim

Awesome Lists containing this project

README

        

# coc-omnisharp

## ⛔ This project is lacking proper maintanence. I would recommend [csharp-ls](https://github.com/razzmatazz/csharp-language-server) at this moment.
I may work on the integration of `csharp-ls` in the future, but now please manually set it up.

`dotnet tool install --global csharp-ls`

`:CocConfig`

```json
{
"languageserver": {
"csharp-ls": {
"command": "csharp-ls",
"filetypes": ["cs"],
"rootPatterns": ["*.csproj", ".vim/", ".git/", ".hg/"]
}
}
}
```

=== Original README below ===

A vim plugin powered by
[OmniSharp](https://github.com/omnisharp/omnisharp-roslyn) and
[coc.nvim](https://github.com/neoclide/coc.nvim).

## Prerequisites

1. Vim 8.0+ or NeoVim
2. [dotnet](http://dot.net)
3. [coc.nvim](https://github.com/neoclide/coc.nvim)

## Installation

`coc-omnisharp` is an extension for `coc.nvim`.
You can install `coc.nvim` with a plugin manager like [vim-plug](https://github.com/junegunn/vim-plug):
```vimL
Plug 'neoclide/coc.nvim', {'branch': 'release'}
```

Then, use `:CocInstall coc-omnisharp` to install.

Alternatively, you can have `coc.nvim` automatically install the extension if it's missing:
```vimL
let g:coc_global_extensions=[ 'coc-omnisharp', ... ]
```

## Configuration

You can call `:CocConfig` to edit configuration. Available options are:

| Key | Description | Type | Default |
| ---------------------- | ---------------------------------- | ---------------------- | ----------- |
| omnisharp.version | Download a specific version | string | latest |
| omnisharp.path | For use with existing installation | string | |
| omnisharp.trace.server | Specify trace level | information \| verbose | information |
| omnisharp.debug.server | Wait for debugger | boolean | false |

#### Example configuration:

```json
{
"omnisharp.version": "v1.37.3",
"omnisharp.trace.server": "information",
"omnisharp.debug.server": true
}
```

## Recommended plugins

[vim-polyglot](https://github.com/sheerun/vim-polyglot) for syntax highlighting 🎨