mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(picker.buffers): add filetype/buftype to search text
This commit is contained in:
parent
4ad8a41eac
commit
a249c86cf1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue