Skip to content
프로젝트

소개

Small lua script that shows inline assembly in neovim (x64, aarch64) for C, C++, and Rust.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+4
in 15 days
+23
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

AssemblyForNeovim

  1. Shows the assembly for C, C++ and Rust code in a floating window.

https://github.com/user-attachments/assets/737170fb-f232-40c9-929a-52081067274d

  1. 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>a in normal mode: function under the cursor
  • <leader>a in 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 -O level, R reruns, q closes
  • :SSort inside a C/C++ struct reorders its fields by alignment to remove padding; :'<,'>SSort reorders 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.

관련 프로젝트 살펴보기

불러오는 중…