Explore WebAssembly Text and how it gets assembled into the WebAssembly binary.
{ "jakobgetz/wat-the-wasm.nvim" }
This plugins makes use of WABT: The WebAssembly Binary Toolkit. Make sure it is installed.
require "wat-the-wasm".setup()
Use these commands on your .wat
files to explore the assembler.
:Wat2Wasm -- display WebAssembly Text as WebAssembly binary
:Wat2Wat -- display WebAssembly Text with the information the WebAssembly binary contains
:WatTheWasm -- display WebAssembly Text as WebAssembly binary with verbose information
:WatRevert -- revert back to the original WebAssembly Text
So far wat-the-wasm has no configuration options.
Pull requests are always welcome!