feat: highlight range in grep buffer previewer (#2611)

This commit is contained in:
Luis
2023-07-27 09:24:50 +02:00
committed by GitHub
parent 1228f3b15c
commit 22735947d8
3 changed files with 34 additions and 8 deletions

View File

@@ -3724,7 +3724,9 @@ previewers.vim_buffer_vimgrep() *telescope.previewers.vim_buffer_vimgrep()*
It uses the `buffer_previewer` interface. To integrate this one into your
own picker make sure that the field `path` or `filename` and `lnum` is set
in each entry. If the latter is not present, it will default to the first
line. The preferred way of using this previewer is like this
line. Additionally, `lnend`, `col` and `colend` can be set to highlight a
text range instead of a single line. All line/column values are 1-indexed.
The preferred way of using this previewer is like this
`require('telescope.config').values.grep_previewer` This will respect user
configuration and will use `termopen_previewer` in case it's configured
that way.