diff options
| author | JD <46619169+rudiejd@users.noreply.github.com> | 2024-05-27 02:14:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-27 14:14:37 +0800 |
| commit | a863f5fa95d922c29353fa775e31566a02ab539d (patch) | |
| tree | bab0219d545d761be59326539890f000ca8ccee6 /lua | |
| parent | docs: delete lspconfig-keybindings section (#3175) (diff) | |
| download | nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar.gz nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar.bz2 nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar.lz nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar.xz nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.tar.zst nvim-lspconfig-a863f5fa95d922c29353fa775e31566a02ab539d.zip | |
feat(msbuild): add msbuild language tools server (#3176)
* feat(msbuild): add msbuild language tools server
* fix: add cmd in
* fix: int
---------
Co-authored-by: JD Rudie <j.rudie@draftkings.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/msbuild_project_tools_server.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua b/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua new file mode 100644 index 00000000..1f6a1241 --- /dev/null +++ b/lua/lspconfig/server_configurations/msbuild_project_tools_server.lua @@ -0,0 +1,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')]], + }, + }, +} |
