diff --git a/.config/nvim/lua/plugins/extras/lang/typescript.lua b/.config/nvim/lua/plugins/extras/lang/typescript.lua index f91e2f9a..fb8f0c22 100644 --- a/.config/nvim/lua/plugins/extras/lang/typescript.lua +++ b/.config/nvim/lua/plugins/extras/lang/typescript.lua @@ -7,4 +7,59 @@ return { { "ct", "TSC", desc = "Type Check" }, }, }, + -- { + -- "pmizio/typescript-tools.nvim", + -- event = { + -- "BufRead *.js,*.jsx,*.mjs,*.cjs,*ts,*tsx", + -- "BufNewFile *.js,*.jsx,*.mjs,*.cjs,*ts,*tsx", + -- }, + -- dependencies = { + -- "nvim-lua/plenary.nvim", + -- "neovim/nvim-lspconfig", + -- }, + -- opts = { + -- on_attach = function(client, bufnr) + -- client.server_capabilities.documentFormattingProvider = false + -- client.server_capabilities.documentRangeFormattingProvider = false + -- + -- vim.keymap.set( + -- "n", + -- "gD", + -- "TSToolsGoToSourceDefinition", + -- { buffer = bufnr, desc = "Source Definition" } + -- ) + -- + -- vim.keymap.set( + -- "n", + -- "i", + -- "TSToolsAddMissingImports", + -- { buffer = bufnr, desc = "Add missing imports" } + -- ) + -- vim.keymap.set( + -- "n", + -- "o", + -- "TSToolsOrganizeImports", + -- { buffer = bufnr, desc = "Organize imports" } + -- ) + -- vim.keymap.set( + -- "n", + -- "r", + -- "TSToolsRemoveUnused", + -- { buffer = bufnr, desc = "Remove unused variables" } + -- ) + -- vim.keymap.set("n", "f", "TSToolsFixAll", { buffer = bufnr, desc = "Fix all" }) + -- end, + -- settings = { + -- tsserver_file_preferences = { + -- includeInlayParameterNameHints = "all", + -- includeInlayParameterNameHintsWhenArgumentMatchesName = false, + -- includeInlayFunctionParameterTypeHints = true, + -- includeInlayVariableTypeHints = true, + -- includeInlayPropertyDeclarationTypeHints = true, + -- includeInlayFunctionLikeReturnTypeHints = true, + -- includeInlayEnumMemberValueHints = true, + -- }, + -- }, + -- }, + -- }, }