https://github.com/integeresting/susu.nvim
Neovim Plugin to quickly write super-/subscript
https://github.com/integeresting/susu.nvim
neovim-plugin subscript superscript
Last synced: 3 days ago
JSON representation
Neovim Plugin to quickly write super-/subscript
- Host: GitHub
- URL: https://github.com/integeresting/susu.nvim
- Owner: integeresting
- License: mit
- Created: 2025-04-26T19:45:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-06T22:04:52.000Z (8 months ago)
- Last Synced: 2026-03-26T20:10:01.457Z (3 months ago)
- Topics: neovim-plugin, subscript, superscript
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
susu.nvim
> [!NOTE]
> `ˢᵘₛᵤ.nvim` helps typing [**Su**perscript and **Su**bscript characters](https://en.wikipedia.org/wiki/Subscript_and_superscript) quickly
> [!TIP]
> not all characters have a super-/subscript equivalent
> [!TIP]
> if you just need numbers you could also use Vim's [digraphs](https://neovim.io/doc/user/usr_24.html#_digraphs): `6s` for `₆` or `9S` for `⁹`
## Setup
The default config looks like this:
```lua
require("susu").setup {
-- this table is optional for changing the default config
binds = {
super_in = "S", -- next key will be converted to superscript
sub_in = "s", -- next key will be converted to subscript
},
picker = false, --optional telescope picker via require("susu").picker
}
```
## Installation
### lazy.nvim
```lua
{
'45Hnri/susu.nvim',
-- only needed if you want to use the picker
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope-symbols.nvim',
'nvim-telescope/telescope.nvim',
}
}
```
## Usage
- `S` to input `` as a Superscript character
- `s` to input `` as a Subscript character
- [change these to your liking](#Setup)
- `:lua require("susu").picker()` to view all symbols in [Telescope](https://github.com/nvim-telescope/telescope.nvim)
- [this requires setting `picker = true`](#Setup)