mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(typescript): remove unused imports
This commit is contained in:
parent
42ba1af40f
commit
d311e6f9ea
1 changed files with 13 additions and 0 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue