プロジェクト
GitHubで見る
0xdeadf1sh/AssemblyForNeovim
概要
Small lua script that shows inline assembly in neovim (x64, aarch64) for C, C++, and Rust.
開発ツール計測したスター増加
- 24時間
- +2
- 7日間
- +11
- 15日間
- +24
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAssemblyForNeovim
- Shows the assembly for C, C++ and Rust code in a floating window.
https://github.com/user-attachments/assets/737170fb-f232-40c9-929a-52081067274d
- Automatically re-orders structs to minimize waste.
https://github.com/user-attachments/assets/f5f302b9-8973-419b-813b-24eaaaa8f1f3
Install
lazy.nvim:
{
"0xdeadf1sh/AssemblyForNeovim",
config = function()
require("asm").setup()
end,
}
Use
<leader>ain normal mode: function under the cursor<leader>ain visual mode, or:'<,'>Asm: selected lines- The shortcut key can be changed by passing a new key value:
require("asm").setup({ key = "<leader>A" }). - In the window:
+/-change-Olevel,Rreruns,qcloses :SSortinside a C/C++ struct reorders its fields by alignment to remove padding;:'<,'>SSortreorders only the selected fields. Sizes come from the compiler. Positional initializers ({1, 2.0, 'c'}) are not updated.
Needs cc/c++ or rustc/cargo on PATH. Uses compile_commands.json if it finds one.
関連プロジェクトを探す
読み込み中…