Show HN: Godbolt-in-a-floating-window for Neovim (C, C++, Rust) github.com · 24 ...
Show HN @show
Show HN: Godbolt-in-a-floating-window for Neovim (C, C++, Rust) github.com · 24 points · 2 comments · HN thread
TL;DR A Show HN project: a Neovim plugin that shows the generated assembly for C, C++ and Rust code in a floating window, using a locally installed compiler rather than an online service like Godbolt. The author posted a demo video and lazy.nvim install instructions, and the README describes keybindings and the compiler requirements.
- Works on the function under the cursor (a in normal mode) or on a visual selection / :'<,'>Asm range.
- The floating window lets you change the optimization level with +/- , rerun with R, and close with q.
- Needs cc/c++ or rustc/cargo on PATH; no internet connection is required.
- If a compile_commands.json is found, the plugin uses it for compile flags.
- Installs with lazy.nvim via a short config calling require("asm").setup().
Discussion The thread is small, with only two top-level comments, and is friendly and informational. Commenters point to existing tools that cover overlapping ground: one recommends cargo-show-asm as a mature helper for the Rust side, and another suggests nvim-dap-disasm for viewing the actual compiled output alongside a debugger.
- Existing tools cover the same need; check them out (some): Commenters point to cargo-show-asm for Rust assembly and nvim-dap-disasm for disassembly with a debugger. One notes cargo-show-asm has seen much work on edge cases.
- Interesting project, positive reception (a few): The plugin is described as interesting by a commenter who also shared the alternative tool links. No criticism of the plugin itself appears in the thread.
Links from the comments