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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,19 @@ return {
end, end,
desc = "Organize Imports", 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 = { settings = {
typescript = { typescript = {