Skip to content
Discussion options

You must be logged in to vote

I thought that the shortening is purely visual.

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#L18
but 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.…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@shushtain
Comment options

Answer selected by shushtain
Comment options

You must be logged in to vote
3 replies
@ibhagwan
Comment options

@nenahp
Comment options

@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants