Skip to content

Is it possible to enable treesitter-context in the previewer? #1509

Answered by ibhagwan
lfantonioli asked this question in Q&A
Discussion options

You must be logged in to vote

@lfantonioli, FYI, with the latest commit add this to your setup call, make sure to update nvim-treesitter-context as the multiwindow feature was only recently added and it won't work without it:

require("fzf-lua").setup({
  previewers = { builtin = { treesitter = { context = true} } }
})

Can also be called indivually:

:FzfLua live_grep previewer.treesitter.context=true

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@lfantonioli
Comment options

@ibhagwan
Comment options

Comment options

You must be logged in to vote
8 replies
@lfantonioli
Comment options

@ibhagwan
Comment options

@ibhagwan
Comment options

@ibhagwan
Comment options

Answer selected by ibhagwan
@lfantonioli
Comment options

@ibhagwan
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
2 participants