Skip to content

Can't "select" or "toggle" entries for some pickers. (lgrep_curbuf or blines are examples) #1171

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

You must be logged in to vote

The default in blines is --no-multi:

["--no-multi"] = true,

You can enable multiple selection by adding fzf_opts = { ['--no-multi']=false, ['--multi']=true } to the blines setup section:

fzf_lua.setup({
  blines = {
    fzf_opts = {
      ['--no-multi']=false,
      ['--multi']=true,
    }
  }
})

Since lgrep_curbuf and grep_curbuf both use the same options as blines (since they are all lines in the current buffer) this will save both your issues:

opts.fzf_opts = vim.tbl_extend("keep", opts.fzf_opts or {}, config.globals.blines.fzf_opts)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by yanghu
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