mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-06 17:16:09 +02:00
33 lines
961 B
Lua
33 lines
961 B
Lua
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- This config is DEPRECATED.
|
|
-- Use the configs in `lsp/` instead (requires Nvim 0.11).
|
|
--
|
|
-- ALL configs in `lua/lspconfig/configs/` will be DELETED.
|
|
-- They exist only to support Nvim 0.10 or older.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
local util = require 'lspconfig.util'
|
|
|
|
return {
|
|
default_config = {
|
|
cmd = { 'csharp-ls' },
|
|
root_dir = function(fname)
|
|
return util.root_pattern '*.sln'(fname) or util.root_pattern '*.csproj'(fname)
|
|
end,
|
|
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`.
|
|
]],
|
|
},
|
|
}
|