From f7520b1927bcdd96aa3a00bfdf923b6350b2ae9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 26 Oct 2023 00:43:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20typescript?= =?UTF-8?q?=20tools=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/lang/typescript.lua | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) 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, + -- }, + -- }, + -- }, + -- }, }