diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua new file mode 100644 index 0000000..e997cf8 --- /dev/null +++ b/lsp/ts_ls.lua @@ -0,0 +1,28 @@ +return { + settings = { + typescript = { + inlayHints = { + includeInlayParameterNameHints = 'all', + includeInlayParameterNameHintsWhenArgumentMatchesName = false, + includeInlayFunctionParameterTypeHints = true, + includeInlayVariableTypeHints = true, + includeInlayVariableTypeHintsWhenTypeMatchesName = false, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayEnumMemberValueHints = true, + }, + }, + javascript = { + inlayHints = { + includeInlayParameterNameHints = 'all', + includeInlayParameterNameHintsWhenArgumentMatchesName = false, + includeInlayFunctionParameterTypeHints = true, + includeInlayVariableTypeHints = true, + includeInlayVariableTypeHintsWhenTypeMatchesName = false, + includeInlayPropertyDeclarationTypeHints = true, + includeInlayFunctionLikeReturnTypeHints = true, + includeInlayEnumMemberValueHints = true, + }, + }, + }, +} diff --git a/lsp/typescript.lua b/lsp/typescript.lua deleted file mode 100644 index be055f8..0000000 --- a/lsp/typescript.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - cmd = { 'typescript-language-server', '--stdio' }, - root_markers = { 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' }, - filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx' }, - init_options = { - hostInfo = 'neovim', - }, -}