Closed niuiic closed 1 month ago
I see, wasn't aware that rg does not always ship with pcre2 support. Do you by any chance know if there is a way to tell from an rg
installation whether pcre2 is available? Ideally, I'd like to automatically detect whether to turn on pcre2 or not.
Error msg from rg command told me this feature is missing. I just debuged the source code, and see this.
Found this in the man page:
--pcre2-version When this flag is present, ripgrep will print the version of PCRE2 in use, along with other information, and then exit. If PCRE2 is not available, then ripgrep will print an error message and exit with an error code.
Could you, just to be sure, tell me what rg --pcre2-version
outputs on your system where rg has not pcre2 included?
PCRE2 is not available in this build of ripgrep
Got it, added some validation that automatically disables pcre2 if using a rg
version without it, and also added some information to the readme
Make sure you have done the following
Bug Description
Required feature
pcre2
is not included in the ripgrep installed withcargo
.You may add this to the document, or maybe we can make this optional.
cargo install ripgrep --features 'pcre2'
Relevant Screenshot
No response
To Reproduce
x
neovim version