Add typescript-specific Optimize Imports binding

This commit is contained in:
Alexander Gehrke 2023-06-24 18:04:11 +02:00
parent 7cdac89502
commit 6012fd6461
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,4 @@
vim.keymap.set("n", "<leader>o",
function() vim.lsp.buf.execute_command({ command = "_typescript.organizeImports", arguments = { vim.fn.expand("%:p") } }) end,
{ desc = "Organize imports" }
)

View file

@ -0,0 +1 @@
typescript.lua