-
|
I'm using Neovim as my manpager with "nvim +Man!". My The I tried using Does anyone know of a neat workaround here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Your options:
|
Beta Was this translation helpful? Give feedback.
-
|
lgrep_curbuf, similar to live_grep/grep uses rg in the background which requires the buffer to have a file system presence - that’s not possible with man pages as the Man contents is a buffer which isn’t saved to disk. Use |
Beta Was this translation helpful? Give feedback.
lgrep_curbufusesrg(ripgrep) under the hood, so it literally needs a file path to read from disk. Man pages are virtual buffers (buftype=nofile) with no backing file — hence the error.Your options:
blines— reads buffer contents directly (no disk file needed). Add search pattern:Conditional mapping — use blines for nofile buffers:
blinesis your best bet here — designed to work with any buffer contents regardless of backing file.