From 25c7e1fe0431231eccfe4565855838b6ebd5bb27 Mon Sep 17 00:00:00 2001 From: Tristan Russell Date: Fri, 8 May 2026 06:52:53 -0400 Subject: [PATCH] feat: Enabled inlay type hints for ts_ls --- lua/truss/lazy/mason-lspconfig.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lua/truss/lazy/mason-lspconfig.lua b/lua/truss/lazy/mason-lspconfig.lua index 24633c3..1a75d76 100644 --- a/lua/truss/lazy/mason-lspconfig.lua +++ b/lua/truss/lazy/mason-lspconfig.lua @@ -44,5 +44,31 @@ return { Lua = {} } }) + + vim.lsp.config("ts_ls", { + settings = { + typescript = { + inlayHints = { + includeInlayParameterNameHints = "none", + includeInlayVariableTypeHints = true, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayFunctionParameterTypeHints = false, + includeInlayEnumMemberValueHints = true, + }, + }, + javascript = { + inlayHints = { + includeInlayParameterNameHints = "none", + includeInlayVariableTypeHints = true, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayFunctionParameterTypeHints = false, + includeInlayEnumMemberValueHints = true, + }, + }, + }, + }) + vim.lsp.inlay_hint.enable(true) end }