diff options
Diffstat (limited to 'lua/lspconfig/server_configurations/csharp_ls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/csharp_ls.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/csharp_ls.lua b/lua/lspconfig/server_configurations/csharp_ls.lua new file mode 100644 index 00000000..1e4809a7 --- /dev/null +++ b/lua/lspconfig/server_configurations/csharp_ls.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig/util' + +return { + default_config = { + cmd = { 'csharp-ls' }, + root_dir = util.root_pattern('*.sln', '*.csproj', '.git'), + filetypes = { 'cs' }, + init_options = { + AutomaticWorkspaceInit = true, + }, + }, + docs = { + description = [[ +https://github.com/razzmatazz/csharp-language-server + +Language Server for C#. + +csharp-ls requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed. + +The preferred way to install csharp-ls is with `dotnet tool install --global csharp-ls`. + ]], + }, +} |
