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

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

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)