Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvllow/supplement.nvim
Distinguish between the infamous en and em dashes
https://github.com/mvllow/supplement.nvim
Last synced: about 2 months ago
JSON representation
Distinguish between the infamous en and em dashes
- Host: GitHub
- URL: https://github.com/mvllow/supplement.nvim
- Owner: mvllow
- Created: 2024-11-22T18:25:05.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T23:19:14.000Z (2 months ago)
- Last Synced: 2024-11-25T00:19:42.438Z (2 months ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# supplement.nvim
> Distinguish between the infamous en and em dashes
## Install
Use your favourite package manager.
```lua
{
"mvllow/supplement.nvim",
}
```## Usage
Run the initial setup:
```lua
require("supplement").setup()
```You will now see virtual text supplementing en and em dashes like so:
> "Self-reflection—--the key to understanding one's place in the universe—--requires a delicate balance between inner peace and external engagement, an age–-old challenge that spans centuries of human thought."
_Notice the en and em dashes are followed by one and two hyphens, respectively._
Additional helper functions are included to manage the plugin state:
```lua
require("supplement").enable()
require("supplement").disable()
require("supplement").toggle()
```## Contributing
Pull requests are welcome and appreciated!