Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Djancyp/regex.nvim
Simple regex helper
https://github.com/Djancyp/regex.nvim
Last synced: 9 days ago
JSON representation
Simple regex helper
- Host: GitHub
- URL: https://github.com/Djancyp/regex.nvim
- Owner: Djancyp
- Created: 2022-08-26T18:01:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-25T11:33:56.000Z (about 1 year ago)
- Last Synced: 2024-08-02T18:37:16.195Z (4 months ago)
- Language: Lua
- Size: 4.88 KB
- Stars: 39
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-neovim-pluginlist - Djancyp/regex.nvim - commit/Djancyp/regex.nvim) ![](https://img.shields.io/github/commit-activity/y/Djancyp/regex.nvim) (Coding / Regex)
README
# Regex Nvim
Helps you to live test your regex from your code.
## Demo![Demo](https://github.com/Djancyp/nvim-plugin-demo/blob/main/regex.nvim/demo.gif)
## Installation```lua
use "Djancyp/regex.nvim"
```
```lua
require('regex-nvim').Setup()
```
## Usage
### Toggle command
You need to run this command while your cursor is on the regex. Please check the demo.
```vim
:RegexHelper
```
### Set Multiple Paths for World-lists
```lua
require('regex-nvim').Setup({
paths:{
emails = ""
dates = ""
}
})
```
### Mods
Ones you attach the regex helper.
#### Normal Mode
you can switch in between different regex line.
#### Insert Mode
you can change your regex and will live update the helper buffer.
#### Insert Mode in Helper Buffer.
As soon as you start to type your last attached regex will try to validate
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)