Skip to content

mmsaki/huff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ huff.nvim

Neovim Treesitter integration for the Huff language

Neovim Tree-sitter License GitHub Release

huff.nvim is a lightweight Neovim plugin that brings Treesitter-powered syntax highlighting and indentation support for the Huff low-level EVM language.

✨ Features

  • 🧩 Treesitter-powered parsing — accurate syntax highlighting
  • 📜 Huff language support — adds .huff filetpye and registers in nvim-treesitter
  • 🔍 Opcode lookup — hover over opcodes to see descriptions, inputs, and outputs
  • 🛠️ Simple setup - no extra configuration needed tree-sitter-huff is auto installed
  • ⚡️ Huff Neo - Supports Huff Neo compiler buildins

screenshot

📦 Installation

Using lazy.nvim:

return {
  "mmsaki/huff.nvim",
  version = "0.2.*",
  dependencies = { "nvim-treesitter/nvim-treesitter" },
  opts = {
    window_type = "floating", -- "floating" or "split"
  },
}

⚙️ Configuration

The plugin can be configured with the following options:

Option Type Default Description
window_type string "floating" Display mode for opcode information: "floating" for floating window or "split" for horizontal split at top

⚒️ Commands

Command Description
:TSInstall huff Installs the Huff parser
:TSUpdateSync huff Updates huff parsers
:OpcodeInfo [opcode] Look up EVM opcode
shiftk Opcode Lookup

Supports all EVM opcodes including arithmetic, comparison, bitwise, memory, storage, and control flow operations.

🔄 Alternatives

While there are other Huff plugins available, huff.nvim offers several advantages:

Feature huff.nvim wuwe1/vim-huff pedrommaiaa/vim-huff
Syntax Highlighting
Indentation
Opcode Lookup x
Grammar Parsing x x
TreeSitter Support x x

Thanks for wuwe1's plugin for inspiring the opcodes lookup feature

🤝 Contributing

Contributions are welcome! If you’d like to improve the parser, fix bugs, or add features, open an issue or submit a PR.

📜 License

MIT © 2025 mmsaki

About

Syntax highlighting for Huff language in neovim + opcode lookups.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published