blob: 1f6a1241f52275283f1190049572e8a016ea30b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
local util = require 'lspconfig.util'
local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll'
return {
default_config = {
filetypes = { 'xml.csproj', 'xml.fsproj', 'sln' },
root_dir = util.find_git_ancestor,
init_options = {},
cmd = { 'dotnet', host_dll_name },
},
docs = {
description = [[
https://github.com/tintoy/msbuild-project-tools-server/
MSBuild Project Tools Server can be installed by following the README.MD on the above repository.
Example config:
```lua
lspconfig.msbuild_project_tools_server.setup {
cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'}
}
```
]],
default_config = {
root_dir = [[root_pattern('.git')]],
},
},
}
|