feat(typescript): added remove unused imports (#1794)

This commit is contained in:
Aron Griffis
2023-10-19 14:12:48 -04:00
committed by GitHub
parent 82da2440e4
commit 8df44b3bb5

View File

@ -32,6 +32,19 @@ return {
end,
desc = "Organize Imports",
},
{
"<leader>cR",
function()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "source.removeUnused.ts" },
diagnostics = {},
},
})
end,
desc = "Remove Unused Imports",
},
},
settings = {
typescript = {