Add typescript-specific Optimize Imports binding
This commit is contained in:
parent
7cdac89502
commit
6012fd6461
4
after/ftplugin/typescript.lua
Normal file
4
after/ftplugin/typescript.lua
Normal 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" }
|
||||||
|
)
|
1
after/ftplugin/typescriptreact.lua
Symbolic link
1
after/ftplugin/typescriptreact.lua
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
typescript.lua
|
Loading…
Reference in a new issue