feat(svelte): add key binding for organize imports

This commit is contained in:
Daniel Mata 2024-06-05 12:52:02 -05:00
parent 106130f4cd
commit 5bc8b4ace0

View file

@ -27,7 +27,23 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
svelte = {},
svelte = {
keys = {
{
"<leader>co",
function()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "source.organizeImports" },
diagnostics = {},
},
})
end,
desc = "Organize Imports",
},
},
},
},
},
},