aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-15 12:32:58 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-04-15 12:32:58 +0000
commit1dd223eea667444d3e128999dfa4e36cebbc9256 (patch)
tree84375ef590f130667273bd8ab6d0b2e06bc02758 /doc
parentfeat(omnisharp): add `vim.lsp.config` support #3724 (diff)
downloadnvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar.gz
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar.bz2
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar.lz
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar.xz
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.tar.zst
nvim-lspconfig-1dd223eea667444d3e128999dfa4e36cebbc9256.zip
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc')
-rw-r--r--doc/configs.md62
-rw-r--r--doc/configs.txt60
2 files changed, 122 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 9de59c7e..4c13dc95 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -189,6 +189,7 @@ Nvim by running `:help lspconfig-all`.
- [ocamlls](#ocamlls)
- [ocamllsp](#ocamllsp)
- [ols](#ols)
+- [omnisharp](#omnisharp)
- [opencl_ls](#opencl_ls)
- [openscad_ls](#openscad_ls)
- [openscad_lsp](#openscad_lsp)
@@ -7035,6 +7036,67 @@ Default config:
---
+## omnisharp
+
+https://github.com/omnisharp/omnisharp-roslyn
+OmniSharp server based on Roslyn workspaces
+
+`omnisharp-roslyn` can be installed by downloading and extracting a release from [here](https://github.com/OmniSharp/omnisharp-roslyn/releases).
+OmniSharp can also be built from source by following the instructions [here](https://github.com/omnisharp/omnisharp-roslyn#downloading-omnisharp).
+
+OmniSharp requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
+
+**By default, omnisharp-roslyn doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
+
+For `go_to_definition` to work fully, extended `textDocument/definition` handler is needed, for example see [omnisharp-extended-lsp.nvim](https://github.com/Hoffs/omnisharp-extended-lsp.nvim)
+
+Snippet to enable the language server:
+```lua
+require'lspconfig'.omnisharp.setup{}
+```
+
+Default config:
+- `capabilities` :
+ ```lua
+ {
+ workspace = {
+ workspaceFolders = false
+ }
+ }
+ ```
+- `cmd` :
+ ```lua
+ { "OmniSharp", "-z", "--hostPID", "1878", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" }
+ ```
+- `filetypes` :
+ ```lua
+ { "cs", "vb" }
+ ```
+- `init_options` :
+ ```lua
+ {}
+ ```
+- `root_markers` :
+ ```lua
+ { ".sln", ".csproj", "omnisharp.json", "function.json" }
+ ```
+- `settings` :
+ ```lua
+ {
+ FormattingOptions = {
+ EnableEditorConfigSupport = true
+ },
+ MsBuild = {},
+ RenameOptions = {},
+ RoslynExtensionsOptions = {},
+ Sdk = {
+ IncludePrereleases = true
+ }
+ }
+ ```
+
+---
+
## opencl_ls
https://github.com/Galarius/opencl-language-server
diff --git a/doc/configs.txt b/doc/configs.txt
index 32150f24..0c0abf98 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -6523,6 +6523,66 @@ Default config:
------------------------------------------------------------------------------
+omnisharp
+
+https://github.com/omnisharp/omnisharp-roslyn
+OmniSharp server based on Roslyn workspaces
+
+`omnisharp-roslyn` can be installed by downloading and extracting a release from [here](https://github.com/OmniSharp/omnisharp-roslyn/releases).
+OmniSharp can also be built from source by following the instructions [here](https://github.com/omnisharp/omnisharp-roslyn#downloading-omnisharp).
+
+OmniSharp requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
+
+**By default, omnisharp-roslyn doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of the unzipped run script or binary.
+
+For `go_to_definition` to work fully, extended `textDocument/definition` handler is needed, for example see [omnisharp-extended-lsp.nvim](https://github.com/Hoffs/omnisharp-extended-lsp.nvim)
+
+Snippet to enable the language server: >lua
+ vim.lsp.enable('omnisharp')
+
+
+Default config:
+- `capabilities` :
+ ```lua
+ {
+ workspace = {
+ workspaceFolders = false
+ }
+ }
+ ```
+- `cmd` :
+ ```lua
+ { "OmniSharp", "-z", "--hostPID", "1878", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" }
+ ```
+- `filetypes` :
+ ```lua
+ { "cs", "vb" }
+ ```
+- `init_options` :
+ ```lua
+ {}
+ ```
+- `root_markers` :
+ ```lua
+ { ".sln", ".csproj", "omnisharp.json", "function.json" }
+ ```
+- `settings` :
+ ```lua
+ {
+ FormattingOptions = {
+ EnableEditorConfigSupport = true
+ },
+ MsBuild = {},
+ RenameOptions = {},
+ RoslynExtensionsOptions = {},
+ Sdk = {
+ IncludePrereleases = true
+ }
+ }
+ ```
+
+
+------------------------------------------------------------------------------
opencl_ls
https://github.com/Galarius/opencl-language-server