summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mora Unie Youer <[email protected]>2025-05-07 18:00:03 +0300
committerLibravatar Mora Unie Youer <[email protected]>2025-05-07 18:00:03 +0300
commitcb87b6141d83c37ce760231daafe964cbde54ecf (patch)
tree165ddccafda81edaba4fa26af4257adb8bd0eae8
parentfeat: enable LSP inlay hints by default (diff)
downloadneovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.tar.gz
neovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.tar.bz2
neovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.tar.lz
neovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.tar.xz
neovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.tar.zst
neovim-configuration-cb87b6141d83c37ce760231daafe964cbde54ecf.zip
feat: enable LSP inlay hints in `typescript-language-server`
Diffstat (limited to '')
-rw-r--r--lsp/typescript-language-server.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lsp/typescript-language-server.lua b/lsp/typescript-language-server.lua
index 1cf6661..41a3110 100644
--- a/lsp/typescript-language-server.lua
+++ b/lsp/typescript-language-server.lua
@@ -9,4 +9,31 @@ return {
"typescriptreact",
"typescript.tsx",
},
+ settings = {
+ typescript = {
+ inlayHints = {
+ includeInlayParameterNameHints = "all",
+ includeInlayParameterNameHintsWhenArgumentMatchesName = true,
+ includeInlayVariableTypeHints = true,
+ includeInlayFunctionParameterTypeHints = true,
+ includeInlayVariableTypeHintsWhenTypeMatchesName = true,
+ includeInlayPropertyDeclarationTypeHints = true,
+ includeInlayFunctionLikeReturnTypeHints = true,
+ includeInlayEnumMemberValueHints = true,
+ },
+ },
+ javascript = {
+ inlayHints = {
+ includeInlayParameterNameHints = "all",
+ includeInlayParameterNameHintsWhenArgumentMatchesName = true,
+ includeInlayVariableTypeHints = true,
+
+ includeInlayFunctionParameterTypeHints = true,
+ includeInlayVariableTypeHintsWhenTypeMatchesName = true,
+ includeInlayPropertyDeclarationTypeHints = true,
+ includeInlayFunctionLikeReturnTypeHints = true,
+ includeInlayEnumMemberValueHints = true,
+ },
+ },
+ },
}