Note
ˢᵘₛᵤ.nvim helps typing Superscript and Subscript characters quickly
Tip
not all characters have a super-/subscript equivalent
Tip
if you just need numbers you could also use Vim's digraphs: <C-k>6s for ₆ or <C-k>9S for ⁹
The default config looks like this:
require("susu").setup {
-- this table is optional for changing the default config
binds = {
super_in = "<Leader>S", -- next key will be converted to superscript
sub_in = "<Leader>s", -- next key will be converted to subscript
},
picker = false, --optional telescope picker via require("susu").picker
}{
'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',
}
}-
<Leader>S<Key>to input<Key>as a Superscript character -
<Leader>s<Key>to input<Key>as a Subscript character -
:lua require("susu").picker()to view all symbols in Telescope