Skip to content
Discussion options

You must be logged in to vote

Thanks! This got me on the right track, though I had to make a few changes:

  • .get_info().query didn't work for me for whatever reason, so I used .get_last_query() instead.
  • Using defer_fn leads to some weird behavior if I type too fast, I think it briefly exits the picker and then my next input char becomes a normal mode command. So removing defer_fn fixes that.

Here's my updated version:

function my_buffer_picker()
    require('fzf-lua').buffers({
        actions = {
            zero = function()
                local query = require('fzf-lua').get_last_query()
                require('fzf-lua').files({ query = query })
            end,
        },
    })
end

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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