forked from dineshsalunke/nvim-config
refactor: organize imports for typescript-tools
This commit is contained in:
parent
a17e69d419
commit
22e43507bf
@ -71,8 +71,18 @@ return {
|
||||
"pmizio/typescript-tools.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
|
||||
config = function()
|
||||
require("typescript-tools").setup({})
|
||||
vim.keymap.set("n", "<leader>toi", vim.lsp.buf.rename, { desc = "[T]ypescript [O]rganize [I]mports" })
|
||||
require("typescript-tools").setup({
|
||||
single_file_support = true,
|
||||
settings = {
|
||||
single_file_support = true,
|
||||
},
|
||||
})
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
"<leader>toi",
|
||||
"<CMD>TSToolsOrganizeImports<CR>",
|
||||
{ desc = "[T]ypescript [O]rganize [I]mports" }
|
||||
)
|
||||
end,
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user