Skip to content

Commit

Permalink
docs: update configs.md
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
github-actions[bot] committed Dec 17, 2024
1 parent 495a7f1 commit 9f2c279
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
25 changes: 23 additions & 2 deletions doc/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6343,6 +6343,27 @@ lspconfig.msbuild_project_tools_server.setup {
}
```

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' })
```

Snippet to enable the language server:
```lua
require'lspconfig'.msbuild_project_tools_server.setup{}
Expand All @@ -6355,7 +6376,7 @@ Default config:
```
- `filetypes` :
```lua
{ "xml.csproj", "xml.fsproj", "sln" }
{ "msbuild" }
```
- `init_options` :
```lua
Expand Down Expand Up @@ -11277,7 +11298,7 @@ Default config:
annotation_paths = {},
debugger_port = -1,
high_precision = false,
java = "/usr/lib/jvm/temurin-11-jdk-amd64/bin/java",
java = "/usr/lib/jvm/temurin-17-jdk-amd64/bin/java",
java_opts = { "-Xmx3000m", "-Xss1m" },
logfile = "/home/user/.cache/nvim/vdm-lsp.log",
mavenrepo = "/home/user/.m2/repository/com/fujitsu"
Expand Down
25 changes: 23 additions & 2 deletions doc/configs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6343,6 +6343,27 @@ lspconfig.msbuild_project_tools_server.setup {
}
```

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' })
```

Snippet to enable the language server:
```lua
require'lspconfig'.msbuild_project_tools_server.setup{}
Expand All @@ -6355,7 +6376,7 @@ Default config:
```
- `filetypes` :
```lua
{ "xml.csproj", "xml.fsproj", "sln" }
{ "msbuild" }
```
- `init_options` :
```lua
Expand Down Expand Up @@ -11277,7 +11298,7 @@ Default config:
annotation_paths = {},
debugger_port = -1,
high_precision = false,
java = "/usr/lib/jvm/temurin-11-jdk-amd64/bin/java",
java = "/usr/lib/jvm/temurin-17-jdk-amd64/bin/java",
java_opts = { "-Xmx3000m", "-Xss1m" },
logfile = "/home/user/.cache/nvim/vdm-lsp.log",
mavenrepo = "/home/user/.m2/repository/com/fujitsu"
Expand Down

0 comments on commit 9f2c279

Please sign in to comment.