https://github.com/cmoisdead/equal.nvim
equal.nvim — evaluate math in place. seamless. fast. qalc-powered.
https://github.com/cmoisdead/equal.nvim
lua neovim neovim-plugin
Last synced: 5 months ago
JSON representation
equal.nvim — evaluate math in place. seamless. fast. qalc-powered.
- Host: GitHub
- URL: https://github.com/cmoisdead/equal.nvim
- Owner: CMOISDEAD
- Created: 2025-11-01T17:03:43.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-11-01T17:33:55.000Z (5 months ago)
- Last Synced: 2025-11-01T19:15:08.881Z (5 months ago)
- Topics: lua, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# equal.nvim
https://github.com/user-attachments/assets/e4da227f-d296-4f3a-a4bb-b8a0d95b3389
equal.nvim — evaluate math in place. seamless. fast. qalc-powered
## Description
Neovim plugin for evaluating math expressions using qalc.
## Requirements
- [qalc](https://github.com/Qalculate/libqalculate)
## Features
- Evaluate expressions (normal + visual mode)
- Floating qalc REPL
- Floating scratch pad
- Terse / expanded output modes
## Installation
- Lazy (default options)
```lua
{
"CMOISDEAD/equal.nvim",
config = function()
require('equal').setup {
modes = { "n", "v" },
keys = {
calc_replace = "cc", -- 1 + 2 → 3
calc_expand = "cC", -- 1 + 2 → 1 + 2 = 3
open_repl = "cr",
toggle_scratch = "cs",
},
}
end
}
```
## Usage
- `:Equal` Calculate line/visual expressions
- `:EqualExpanded` Calculate with expanded otput mode
- `:EqualScratch` Toggle qalc scratch buffer
- `:EqualRepl` Open qalc repl
## Roadmap
- Multiline evaluation
- UI improvements
- Real-time values