Skip to content

Commit 22a6ada

Browse files
docs: update configs.md
skip-checks: true
1 parent 5ac30b9 commit 22a6ada

2 files changed

Lines changed: 208 additions & 0 deletions

File tree

doc/configs.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ Nvim by running `:help lspconfig-all`.
243243
- [robotframework_ls](#robotframework_ls)
244244
- [roc_ls](#roc_ls)
245245
- [rome](#rome)
246+
- [roslyn_ls](#roslyn_ls)
246247
- [rpmspec](#rpmspec)
247248
- [rubocop](#rubocop)
248249
- [ruby_lsp](#ruby_lsp)
@@ -9000,6 +9001,110 @@ Default config:
90009001

90019002
---
90029003

9004+
## roslyn_ls
9005+
9006+
https://github.com/dotnet/roslyn
9007+
9008+
To install the server, compile from source or download as nuget package.
9009+
Go to `https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuGet/Microsoft.CodeAnalysis.LanguageServer.<platform>/overview`
9010+
replace `<platform>` with one of the following `linux-x64`, `osx-x64`, `win-x64`, `neutral` (for more info on the download location see https://github.com/dotnet/roslyn/issues/71474#issuecomment-2177303207).
9011+
Download and extract it (nuget's are zip files).
9012+
- if you chose `neutral` nuget version, then you have to change the `cmd` like so:
9013+
cmd = {
9014+
'dotnet',
9015+
'<my_folder>/Microsoft.CodeAnalysis.LanguageServer.dll',
9016+
'--logLevel', -- this property is required by the server
9017+
'Information',
9018+
'--extensionLogDirectory', -- this property is required by the server
9019+
fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'),
9020+
'--stdio',
9021+
},
9022+
where `<my_folder>` has to be the folder you extracted the nuget package to.
9023+
- for all other platforms put the extracted folder to neovim's PATH (`vim.env.PATH`)
9024+
9025+
Snippet to enable the language server:
9026+
```lua
9027+
require'lspconfig'.roslyn_ls.setup{}
9028+
```
9029+
9030+
Default config:
9031+
- `capabilities` :
9032+
```lua
9033+
{
9034+
textDocument = {
9035+
diagnostic = {
9036+
dynamicRegistration = true
9037+
}
9038+
}
9039+
}
9040+
```
9041+
- `cmd` :
9042+
```lua
9043+
{ "Microsoft.CodeAnalysis.LanguageServer", "--logLevel", "Information", "--extensionLogDirectory", "/tmp/roslyn_ls/logs", "--stdio" }
9044+
```
9045+
- `filetypes` :
9046+
```lua
9047+
{ "cs" }
9048+
```
9049+
- `handlers` :
9050+
```lua
9051+
{
9052+
["razor/provideDynamicFileInfo"] = <function 1>,
9053+
["workspace/_roslyn_projectHasUnresolvedDependencies"] = <function 2>,
9054+
["workspace/_roslyn_projectNeedsRestore"] = <function 3>,
9055+
["workspace/projectInitializationComplete"] = <function 4>
9056+
}
9057+
```
9058+
- `name` :
9059+
```lua
9060+
"roslyn_ls"
9061+
```
9062+
- `offset_encoding` :
9063+
```lua
9064+
"utf-8"
9065+
```
9066+
- `on_init` :
9067+
```lua
9068+
{ <function 1> }
9069+
```
9070+
- `root_dir` source (use "gF" to open): [../lsp/roslyn_ls.lua:92](../lsp/roslyn_ls.lua#L92)
9071+
- `settings` :
9072+
```lua
9073+
{
9074+
["csharp|background_analysis"] = {
9075+
dotnet_analyzer_diagnostics_scope = "fullSolution",
9076+
dotnet_compiler_diagnostics_scope = "fullSolution"
9077+
},
9078+
["csharp|code_lens"] = {
9079+
dotnet_enable_references_code_lens = true
9080+
},
9081+
["csharp|completion"] = {
9082+
dotnet_provide_regex_completions = true,
9083+
dotnet_show_completion_items_from_unimported_namespaces = true,
9084+
dotnet_show_name_completion_suggestions = true
9085+
},
9086+
["csharp|inlay_hints"] = {
9087+
csharp_enable_inlay_hints_for_implicit_object_creation = true,
9088+
csharp_enable_inlay_hints_for_implicit_variable_types = true,
9089+
csharp_enable_inlay_hints_for_lambda_parameter_types = true,
9090+
csharp_enable_inlay_hints_for_types = true,
9091+
dotnet_enable_inlay_hints_for_indexer_parameters = true,
9092+
dotnet_enable_inlay_hints_for_literal_parameters = true,
9093+
dotnet_enable_inlay_hints_for_object_creation_parameters = true,
9094+
dotnet_enable_inlay_hints_for_other_parameters = true,
9095+
dotnet_enable_inlay_hints_for_parameters = true,
9096+
dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true,
9097+
dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true,
9098+
dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true
9099+
},
9100+
["csharp|symbol_search"] = {
9101+
dotnet_search_reference_assemblies = true
9102+
}
9103+
}
9104+
```
9105+
9106+
---
9107+
90039108
## rpmspec
90049109

90059110
https://github.com/dcermak/rpm-spec-language-server

doc/configs.txt

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8420,6 +8420,109 @@ Default config:
84208420
```
84218421

84228422

8423+
------------------------------------------------------------------------------
8424+
roslyn_ls
8425+
8426+
https://github.com/dotnet/roslyn
8427+
8428+
To install the server, compile from source or download as nuget package.
8429+
Go to `https://dev.azure.com/azure-public/vside/_artifacts/feed/vs-impl/NuGet/Microsoft.CodeAnalysis.LanguageServer.<platform>/overview`
8430+
replace `<platform>` with one of the following `linux-x64`, `osx-x64`, `win-x64`, `neutral` (for more info on the download location see https://github.com/dotnet/roslyn/issues/71474#issuecomment-2177303207).
8431+
Download and extract it (nuget's are zip files).
8432+
- if you chose `neutral` nuget version, then you have to change the `cmd` like so:
8433+
cmd = {
8434+
'dotnet',
8435+
'<my_folder>/Microsoft.CodeAnalysis.LanguageServer.dll',
8436+
'--logLevel', -- this property is required by the server
8437+
'Information',
8438+
'--extensionLogDirectory', -- this property is required by the server
8439+
fs.joinpath(uv.os_tmpdir(), 'roslyn_ls/logs'),
8440+
'--stdio',
8441+
},
8442+
where `<my_folder>` has to be the folder you extracted the nuget package to.
8443+
- for all other platforms put the extracted folder to neovim's PATH (`vim.env.PATH`)
8444+
8445+
Snippet to enable the language server: >lua
8446+
vim.lsp.enable('roslyn_ls')
8447+
8448+
8449+
Default config:
8450+
- `capabilities` :
8451+
```lua
8452+
{
8453+
textDocument = {
8454+
diagnostic = {
8455+
dynamicRegistration = true
8456+
}
8457+
}
8458+
}
8459+
```
8460+
- `cmd` :
8461+
```lua
8462+
{ "Microsoft.CodeAnalysis.LanguageServer", "--logLevel", "Information", "--extensionLogDirectory", "/tmp/roslyn_ls/logs", "--stdio" }
8463+
```
8464+
- `filetypes` :
8465+
```lua
8466+
{ "cs" }
8467+
```
8468+
- `handlers` :
8469+
```lua
8470+
{
8471+
["razor/provideDynamicFileInfo"] = <function 1>,
8472+
["workspace/_roslyn_projectHasUnresolvedDependencies"] = <function 2>,
8473+
["workspace/_roslyn_projectNeedsRestore"] = <function 3>,
8474+
["workspace/projectInitializationComplete"] = <function 4>
8475+
}
8476+
```
8477+
- `name` :
8478+
```lua
8479+
"roslyn_ls"
8480+
```
8481+
- `offset_encoding` :
8482+
```lua
8483+
"utf-8"
8484+
```
8485+
- `on_init` :
8486+
```lua
8487+
{ <function 1> }
8488+
```
8489+
- `root_dir` source (use "gF" to open): [../lsp/roslyn_ls.lua:92](../lsp/roslyn_ls.lua#L92)
8490+
- `settings` :
8491+
```lua
8492+
{
8493+
["csharp|background_analysis"] = {
8494+
dotnet_analyzer_diagnostics_scope = "fullSolution",
8495+
dotnet_compiler_diagnostics_scope = "fullSolution"
8496+
},
8497+
["csharp|code_lens"] = {
8498+
dotnet_enable_references_code_lens = true
8499+
},
8500+
["csharp|completion"] = {
8501+
dotnet_provide_regex_completions = true,
8502+
dotnet_show_completion_items_from_unimported_namespaces = true,
8503+
dotnet_show_name_completion_suggestions = true
8504+
},
8505+
["csharp|inlay_hints"] = {
8506+
csharp_enable_inlay_hints_for_implicit_object_creation = true,
8507+
csharp_enable_inlay_hints_for_implicit_variable_types = true,
8508+
csharp_enable_inlay_hints_for_lambda_parameter_types = true,
8509+
csharp_enable_inlay_hints_for_types = true,
8510+
dotnet_enable_inlay_hints_for_indexer_parameters = true,
8511+
dotnet_enable_inlay_hints_for_literal_parameters = true,
8512+
dotnet_enable_inlay_hints_for_object_creation_parameters = true,
8513+
dotnet_enable_inlay_hints_for_other_parameters = true,
8514+
dotnet_enable_inlay_hints_for_parameters = true,
8515+
dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix = true,
8516+
dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name = true,
8517+
dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent = true
8518+
},
8519+
["csharp|symbol_search"] = {
8520+
dotnet_search_reference_assemblies = true
8521+
}
8522+
}
8523+
```
8524+
8525+
84238526
------------------------------------------------------------------------------
84248527
rpmspec
84258528

0 commit comments

Comments
 (0)