mirror of
https://github.com/astral-sh/ty.git
synced 2025-12-23 08:48:09 +00:00
Add ty.inlayHints.callArgumentNames reference (#981)
This commit is contained in:
parent
d3fe41bbed
commit
07868315cb
1 changed files with 61 additions and 0 deletions
|
|
@ -215,6 +215,67 @@ Whether to show the types of variables as inline hints.
|
|||
}
|
||||
```
|
||||
|
||||
### `callArgumentNames`
|
||||
|
||||
Whether to show argument names in call expressions as inline hints.
|
||||
|
||||
**Default value**: `true`
|
||||
|
||||
**Type**: `boolean`
|
||||
|
||||
**Example usage**:
|
||||
|
||||
=== "VS Code"
|
||||
|
||||
```json
|
||||
{
|
||||
"ty.inlayHints.callArgumentNames": false
|
||||
}
|
||||
```
|
||||
|
||||
=== "Neovim"
|
||||
|
||||
```lua
|
||||
require('lspconfig').ty.setup({
|
||||
settings = {
|
||||
ty = {
|
||||
inlayHints = {
|
||||
callArgumentNames = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- For Neovim 0.11.0 and later:
|
||||
vim.lsp.config('ty', {
|
||||
settings = {
|
||||
ty = {
|
||||
inlayHints = {
|
||||
callArgumentNames = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
=== "Zed"
|
||||
|
||||
```json
|
||||
{
|
||||
"lsp": {
|
||||
"ty": {
|
||||
"settings": {
|
||||
"ty": {
|
||||
"inlayHints": {
|
||||
"callArgumentNames": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
______________________________________________________________________
|
||||
|
||||
## `experimental`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue