Skip to content

mmsaki/huff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ huff.nvim

Neovim Treesitter integration for the Huff language

Neovim Tree-sitter License

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 — compatible with .huff files
  • 🔍 Opcode lookup — hover over opcodes to see descriptions, inputs, and outputs
  • Lazy-loaded for performance
  • 🛠️ Simple setup, no extra configuration needed

📦 Installation

Using lazy.nvim:

return {
  "mmsaki/huff.nvim",
  version = "0.2.*",
  dependencies = { "nvim-treesitter/nvim-treesitter" },
}

screenshot

⚒️ Commands

Command Description
:TSInstall huff Installs the Huff parser
:TSUpdate Updates all parsers
:OpcodeInfo Look up EVM opcode information
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 pedrommaiaa/vim-huff wuwe1/vim-huff
Grammar Parsing [x] x x
TreeSitter Support [x] x x
Maintenance Status [x] ? ?
Syntax Highlighting [x] ⚠️ ⚠️
Indentation [x] ? ?
Opcode Lookup [x] ? [x]

🤝 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