diff options
| author | awy <awy@awy.one> | 2025-11-16 18:12:11 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-16 18:12:11 +0300 |
| commit | ad205a6812ddbcfb73c73a7e6b7a9acbb5267d53 (patch) | |
| tree | c739bcc0093648db96ea3f7d743c486691139d53 /.config/nvim/lsp/msbuild_project_tools_server.lua | |
| parent | 5764990192e805fe32743dc311813ac8b396e8b2 (diff) | |
| download | mangoslice-ad205a6812ddbcfb73c73a7e6b7a9acbb5267d53.tar.gz | |
nvim
Diffstat (limited to '.config/nvim/lsp/msbuild_project_tools_server.lua')
| -rw-r--r-- | .config/nvim/lsp/msbuild_project_tools_server.lua | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/.config/nvim/lsp/msbuild_project_tools_server.lua b/.config/nvim/lsp/msbuild_project_tools_server.lua deleted file mode 100644 index 0f85e51..0000000 --- a/.config/nvim/lsp/msbuild_project_tools_server.lua +++ /dev/null @@ -1,47 +0,0 @@ ----@brief ---- ---- 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 ---- vim.lsp.config('msbuild_project_tools_server', { ---- cmd = {'dotnet', '/path/to/server/MSBuildProjectTools.LanguageServer.Host.dll'} ---- }) ---- ``` ---- ---- There's no builtin filetypes for msbuild files, would require some filetype aliases: ---- ---- ```lua ---- vim.filetype.add({ ---- extension = { ---- props = 'msbuild', ---- tasks = 'msbuild', ---- targets = 'msbuild', ---- }, ---- pattern = { ---- [ [[.*\..*proj]] ] = 'msbuild', ---- }, ---- }) ---- ``` ---- ---- Optionally tell treesitter to treat `msbuild` as `xml` so you can get syntax highlighting if you have the treesitter-xml-parser installed. ---- ---- ```lua ---- vim.treesitter.language.register('xml', { 'msbuild' }) ---- ``` - -local host_dll_name = 'MSBuildProjectTools.LanguageServer.Host.dll' -local util = require 'lspconfig.util' - ----@type vim.lsp.Config -return { - filetypes = { 'msbuild' }, - root_dir = function(bufnr, on_dir) - local fname = vim.api.nvim_buf_get_name(bufnr) - on_dir(util.root_pattern('*.sln', '*.slnx', '*.*proj', '.git')(fname)) - end, - init_options = {}, - cmd = { 'dotnet', host_dll_name }, -} |