Helps you to live test your regex from your code.
use "Djancyp/regex.nvim"
require('regex-nvim').Setup()
You need to run this command while your cursor is on the regex. Please check the demo.
:RegexHelper
require('regex-nvim').Setup({
paths:{
emails = "<path to world-list>"
dates = "<path to world-list>"
}
})
Ones you attach the regex helper.
you can switch in between different regex line.
you can change your regex and will live update the helper buffer.
As soon as you start to type your last attached regex will try to validate
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.