Skip to content

Commit

Permalink
docs: update server_configurations.md
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
github-actions[bot] committed Nov 20, 2023
1 parent e8842b9 commit 7fedba8
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
53 changes: 53 additions & 0 deletions doc/server_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [scry](#scry)
- [serve_d](#serve_d)
- [sixtyfps](#sixtyfps)
- [slangd](#slangd)
- [slint_lsp](#slint_lsp)
- [smarty_ls](#smarty_ls)
- [smithy_ls](#smithy_ls)
Expand Down Expand Up @@ -8961,6 +8962,58 @@ require'lspconfig'.sixtyfps.setup{}
```


## slangd

https://github.com/shader-slang/slang

The `slangd` binary can be downloaded as part of [slang releases](https://github.com/shader-slang/slang/releases) or
by [building `slang` from source](https://github.com/shader-slang/slang/blob/master/docs/building.md).

The server can be configured by passing a "settings" object to `slangd.setup{}`:

```lua
require('lspconfig').slangd.setup{
settings = {
slang = {
predefinedMacros = {"MY_VALUE_MACRO=1"},
inlayHints = {
deducedTypes = true,
parameterNames = true,
}
}
}
}
```
Available options are documented [here](https://github.com/shader-slang/slang-vscode-extension/tree/main?tab=readme-ov-file#configurations)
or in more detail [here](https://github.com/shader-slang/slang-vscode-extension/blob/main/package.json#L70).



**Snippet to enable the language server:**
```lua
require'lspconfig'.slangd.setup{}
```


**Default values:**
- `cmd` :
```lua
{ "slangd" }
```
- `filetypes` :
```lua
{ "hlsl", "shaderslang" }
```
- `root_dir` :
```lua
util.find_git_ancestor
```
- `single_file_support` :
```lua
true
```


## slint_lsp

https://github.com/slint-ui/slint
Expand Down
53 changes: 53 additions & 0 deletions doc/server_configurations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [scry](#scry)
- [serve_d](#serve_d)
- [sixtyfps](#sixtyfps)
- [slangd](#slangd)
- [slint_lsp](#slint_lsp)
- [smarty_ls](#smarty_ls)
- [smithy_ls](#smithy_ls)
Expand Down Expand Up @@ -8961,6 +8962,58 @@ require'lspconfig'.sixtyfps.setup{}
```


## slangd

https://github.com/shader-slang/slang

The `slangd` binary can be downloaded as part of [slang releases](https://github.com/shader-slang/slang/releases) or
by [building `slang` from source](https://github.com/shader-slang/slang/blob/master/docs/building.md).

The server can be configured by passing a "settings" object to `slangd.setup{}`:

```lua
require('lspconfig').slangd.setup{
settings = {
slang = {
predefinedMacros = {"MY_VALUE_MACRO=1"},
inlayHints = {
deducedTypes = true,
parameterNames = true,
}
}
}
}
```
Available options are documented [here](https://github.com/shader-slang/slang-vscode-extension/tree/main?tab=readme-ov-file#configurations)
or in more detail [here](https://github.com/shader-slang/slang-vscode-extension/blob/main/package.json#L70).



**Snippet to enable the language server:**
```lua
require'lspconfig'.slangd.setup{}
```


**Default values:**
- `cmd` :
```lua
{ "slangd" }
```
- `filetypes` :
```lua
{ "hlsl", "shaderslang" }
```
- `root_dir` :
```lua
util.find_git_ancestor
```
- `single_file_support` :
```lua
true
```


## slint_lsp

https://github.com/slint-ui/slint
Expand Down

0 comments on commit 7fedba8

Please sign in to comment.