Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grahambates/68kcounter-nvim
neovim plugin for 68kcounter
https://github.com/grahambates/68kcounter-nvim
amiga assembly atari m68k nvim
Last synced: about 2 months ago
JSON representation
neovim plugin for 68kcounter
- Host: GitHub
- URL: https://github.com/grahambates/68kcounter-nvim
- Owner: grahambates
- License: mit
- Created: 2023-09-06T17:05:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-06T17:50:03.000Z (over 1 year ago)
- Last Synced: 2024-10-12T06:22:29.128Z (3 months ago)
- Topics: amiga, assembly, atari, m68k, nvim
- Language: Lua
- Homepage:
- Size: 352 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 68kcounter-nvim
Neovim plugin for [68kcounter](https://github.com/grahambates/68kcounter/)
Analyses 68000 assembly source to profile resource and size data. For each
instruction it will tell you:- CPU cycles
- Bus read cycles
- Bus write cycles
- Size in bytes![image](preview.png)
## Dependencies
- neovim 0.9+
- 68kcounter 3.2+ npm package installed globally: `npm i -g 68kcounter`## Installation
Install using your preferred plugin manager e.g. Packer.
You can configure 68kcounter by passing a table to the setup function.
The following options are available and set by default:```lua
-- Using packer
use({
"grahambates/68kcounter-nvim",
config = function()
require("68kcounter").setup({
-- path to 68kcounter node cli tool (default assumes global path)
bin_path="68kcounter"
})
end,
})
```## Usage
Your assembly files should be using the `asm68k` or `asm` filetype.
Counts are displayed to the left of the current window.
Once open, they will be live-updated as you edit or switch files.| Command | Description |
|----------------|----------------------------------------|
|`:CounterShow` | Show counts for current window/buffer |
|`:CounterHide` | Hide the counts window |
|`:CounterToggle`| Toggle visibility of the counts window |