return { cmd = { "typescript-language-server", "--stdio", }, filetypes = { "javascript", "typescript" }, -- disable_formatting = true, root_markers = { "yarn.lock", "tsconfig.json", "jsconfig.json", "package.json", ".git" }, single_file_support = true, settings = { javascript = { inlayHints = { includeInlayEnumMemberValueHints = true, includeInlayFunctionLikeReturnTypeHints = true, includeInlayFunctionParameterTypeHints = true, includeInlayParameterNameHints = "all", -- "none" | "literals" | "all"; includeInlayParameterNameHintsWhenArgumentMatchesName = true, includeInlayPropertyDeclarationTypeHints = true, includeInlayVariableTypeHints = true, }, }, typescript = { inlayHints = { includeInlayEnumMemberValueHints = true, includeInlayFunctionLikeReturnTypeHints = true, includeInlayFunctionParameterTypeHints = true, includeInlayParameterNameHints = "all", -- "none" | "literals" | "all"; includeInlayParameterNameHintsWhenArgumentMatchesName = true, includeInlayPropertyDeclarationTypeHints = true, includeInlayVariableTypeHints = true, }, }, }, }