⚙️ config(nvim): typescript tools added
This commit is contained in:
parent
58680600d8
commit
f7520b1927
1 changed files with 55 additions and 0 deletions
|
@ -7,4 +7,59 @@ return {
|
|||
{ "<leader>ct", "<cmd>TSC<cr>", 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",
|
||||
-- "<Cmd>TSToolsGoToSourceDefinition<CR>",
|
||||
-- { buffer = bufnr, desc = "Source Definition" }
|
||||
-- )
|
||||
--
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<localleader>i",
|
||||
-- "<Cmd>TSToolsAddMissingImports<CR>",
|
||||
-- { buffer = bufnr, desc = "Add missing imports" }
|
||||
-- )
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<localleader>o",
|
||||
-- "<Cmd>TSToolsOrganizeImports<CR>",
|
||||
-- { buffer = bufnr, desc = "Organize imports" }
|
||||
-- )
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<localleader>r",
|
||||
-- "<Cmd>TSToolsRemoveUnused<CR>",
|
||||
-- { buffer = bufnr, desc = "Remove unused variables" }
|
||||
-- )
|
||||
-- vim.keymap.set("n", "<localleader>f", "<Cmd>TSToolsFixAll<CR>", { buffer = bufnr, desc = "Fix all" })
|
||||
-- end,
|
||||
-- settings = {
|
||||
-- tsserver_file_preferences = {
|
||||
-- includeInlayParameterNameHints = "all",
|
||||
-- includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
-- includeInlayFunctionParameterTypeHints = true,
|
||||
-- includeInlayVariableTypeHints = true,
|
||||
-- includeInlayPropertyDeclarationTypeHints = true,
|
||||
-- includeInlayFunctionLikeReturnTypeHints = true,
|
||||
-- includeInlayEnumMemberValueHints = true,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue