https://github.com/statusfailed/nvim-hexpr
nvim syntax highlighting for hexprs
https://github.com/statusfailed/nvim-hexpr
Last synced: about 1 month ago
JSON representation
nvim syntax highlighting for hexprs
- Host: GitHub
- URL: https://github.com/statusfailed/nvim-hexpr
- Owner: statusfailed
- Created: 2026-01-06T19:58:56.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2026-01-12T20:18:22.000Z (about 2 months ago)
- Last Synced: 2026-01-13T01:23:48.152Z (about 2 months ago)
- Language: Vim Script
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nvim-hexpr
Neovim syntax highlighting for [H-Expressions](https://github.com/hellas-ai/hexpr) (.hex files)
## Installation
### lazy.nvim
```lua
{
"statusfailed/nvim-hexpr",
config = function()
require("hex-nvim").setup()
end,
}
```
### packer.nvim
```lua
use {
"statusfailed/nvim-hexpr",
config = function()
require("hex-nvim").setup()
end,
}
```
## Usage
The plugin automatically detects `.hex` files and applies syntax highlighting for:
- Comments (`#`)
- Composition `()`
- Tensor `{}`
- Frobenius `[]`
- Variables and operations
## Example
```hex
# This is a comment
(f g) # compose f and g
{f0 f1} # tensor f and g
[x y . x x] # create a spider that copies x and discards y
```