Is it possible to enable treesitter-context in the previewer? #1509
-
is it possible to enable something like treesitter-context in the previewer window (as a custom previewer)? I know running treesitter-context on all previewers might be a heavy operation, but for some operations, like lsp_references, the context would help to understand quickly your location in the code. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Not possible ATM, the sitter context is an additional plugin dependency and IMHO unnecessary complexity to the previewer. |
Beta Was this translation helpful? Give feedback.
-
@lfantonioli, recently a |
Beta Was this translation helpful? Give feedback.
@lfantonioli, FYI, with the latest commit add this to your
setup
call, make sure to updatenvim-treesitter-context
as themultiwindow
feature was only recently added and it won't work without it:Can also be called indivually:
:FzfLua live_grep previewer.treesitter.context=true