diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
| commit | f8b5cbe6312b568def1f91d747e2cdb8984fdf2e (patch) | |
| tree | c1baf319b22d8ccc7d3468276b5ba9a26dfa2775 /lsp/msbuild_project_tools_server.lua | |
| parent | feat: angularls #3746 (diff) | |
| download | nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.gz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.bz2 nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.lz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.xz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.zst nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.zip | |
docs: cleanup
- brief should live at the top of each file
- fix indentation for some docs
Diffstat (limited to 'lsp/msbuild_project_tools_server.lua')
| -rw-r--r-- | lsp/msbuild_project_tools_server.lua | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/lsp/msbuild_project_tools_server.lua b/lsp/msbuild_project_tools_server.lua index 490cfd2b..bf2f2b4b 100644 --- a/lsp/msbuild_project_tools_server.lua +++ b/lsp/msbuild_project_tools_server.lua @@ -1,39 +1,40 @@ +---@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' ----@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' }) --- ``` return { filetypes = { 'msbuild' }, root_dir = function(bufnr, on_dir) |
