Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Russoul/abbrev-expand.nvim


https://github.com/Russoul/abbrev-expand.nvim

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# abbrev-expand.nvim

## Preview

## Setup

Setup used in the demo (press `` at the end of an abbreviation in insert mode and anywhere in visual mode to expand):

```lua
require('abbrev-expand').setup {
map = {
{"hooray", "🥳"},
{"eta", "η"},
{"Theta", "theta"},
{"[", "⟦"},
{"]", "⟧"},
{"union", "∪"},
{"iff", "⇔"},
{"and", "∧"},
{"elem", "∈"}
}
}

vim.api.nvim_set_keymap('i', '', ':lua require("abbrev-expand").expand(".")',
{noremap = true, silent = true})
vim.api.nvim_set_keymap('x', '', ':lua require("abbrev-expand").expand("\'>")',
{noremap = true, silent = true})

```