An open API service indexing awesome lists of open source software.

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.

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