Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Russoul/abbrev-expand.nvim
https://github.com/Russoul/abbrev-expand.nvim
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/Russoul/abbrev-expand.nvim
- Owner: Russoul
- License: bsd-3-clause
- Created: 2024-11-17T23:59:34.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T00:21:59.000Z (about 2 months ago)
- Last Synced: 2024-11-18T01:21:29.996Z (about 2 months ago)
- Language: Lua
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-neovim-pluginlist - Russoul/abbrev-expand.nvim - expand.nvim) ![](https://img.shields.io/github/last-commit/Russoul/abbrev-expand.nvim) ![](https://img.shields.io/github/commit-activity/y/Russoul/abbrev-expand.nvim) (Other Standard Feature Enhancement / Abbreviation)
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})```