feat(picker.buffers): add filetype/buftype to search text

This commit is contained in:
Folke Lemaitre 2025-10-26 20:12:31 +01:00
parent 4ad8a41eac
commit a249c86cf1
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -38,11 +38,11 @@ function M.buffers(opts, ctx)
name = vim.api.nvim_buf_get_name(buf),
buftype = vim.bo[buf].buftype,
filetype = vim.bo[buf].filetype,
text = buf .. " " .. name,
file = name,
info = info,
pos = mark[1] ~= 0 and mark or { info.lnum, 0 },
})
items[#items].text = Snacks.picker.util.text(items[#items], { "buf", "name", "filetype", "buftype" })
end
end
if opts.sort_lastused then