From 07868315cbe93ca2ed05ab3e8260bc39d8b26b02 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 14 Aug 2025 15:04:13 +0530 Subject: [PATCH] Add `ty.inlayHints.callArgumentNames` reference (#981) --- docs/reference/editor-settings.md | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/docs/reference/editor-settings.md b/docs/reference/editor-settings.md index 3a45345..f256509 100644 --- a/docs/reference/editor-settings.md +++ b/docs/reference/editor-settings.md @@ -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`