mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 19:50:09 +02:00
feat(typescript): added remove unused imports (#1794)
This commit is contained in:
parent
82da2440e4
commit
8df44b3bb5
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
Add a link
Reference in a new issue