Skip to content
Discussion options

You must be logged in to vote

I vaguely remember it being asked somewhere here, but can not find it.

There is no built-in way to do it and requires writing custom source/picker. The reason for this is to limit complexity (both in implementation and configuration) and to reuse :buffers output directly (as it has some of the work done in filtering/sorting buffers and formatting their names).

You can have custom picker that sorts buffers by "recency" with something like this (use later with :Pick my_buffers):

require('mini.pick').setup()
MiniPick.registry.my_buffers = function()
  local items, cwd = {}, vim.fn.getcwd()
  for _, buf_info in ipairs(vim.fn.getbufinfo()) do
    if buf_info.listed == 1 then
      local name = v…

Replies: 1 comment 2 replies

Comment options

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

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.pick
2 participants