-
|
I have two query files:
When I search for "offset" with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
it's not visual, it's processed before piped into fzf. It's possible to process the text only visually via I'm not sure if snacks can do this correct, since it can apply treesitter hl on live_grep result by rebuild the line totally via a ripgrep option: https://github.com/folke/snacks.nvim/blob/f2f05e5cffcedf153ff5c669dab79454618f8cbb/lua/snacks/picker/source/grep.lua#L17 (EDIT: maybe this is not related, it's about content, not path name) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

it's not visual, it's processed before piped into fzf.
It's possible to process the text only visually via
nvim_set_decoration_provider: https://github.com/phanen/fzf-lua-overlay/blob/5fdc194ddfe2e64a7fd6780492d8838553c06008/lua/fzf-lua-extra/providers/file_decor.lua#L18but this will break ansi highlighting, so you have to rebuild total line, and it's a bit tricky to get the "matched" part then apply correct highlighting (still possible with
nvim__inspect_cell).I'm not sure if snacks can do this correct, since it can apply treesitter hl on live_grep result by rebuild the line totally via a ripgrep option: https://github.com/folke/snacks.…