diff --git a/after/ftplugin/typescript.lua b/after/ftplugin/typescript.lua new file mode 100644 index 0000000..e5ad9bf --- /dev/null +++ b/after/ftplugin/typescript.lua @@ -0,0 +1,4 @@ +vim.keymap.set("n", "o", + function() vim.lsp.buf.execute_command({ command = "_typescript.organizeImports", arguments = { vim.fn.expand("%:p") } }) end, + { desc = "Organize imports" } +) diff --git a/after/ftplugin/typescriptreact.lua b/after/ftplugin/typescriptreact.lua new file mode 120000 index 0000000..ede1851 --- /dev/null +++ b/after/ftplugin/typescriptreact.lua @@ -0,0 +1 @@ +typescript.lua \ No newline at end of file