You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using buffers picker with sort_lastused option enabled, entry at index 2 stays selected until only one entry left, even though there's better match at index 1. With additional option 'ignore_current_buffer` enabled selection works as expected.
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fd 10.1.0
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Steps to reproduce
nvim -nu minimal.lua
open some buffers
run Telescope buffers sort_lastused=true
start typing
Expected behavior
After start typing in buffers picker with sort_lastused option enabled, selection goes to entry at index 1.
Actual behavior
sort_lastused.wierd.behavior.mp4
With ignore_current_buffer enabled:
ok.with.ignore_current_buffer.mp4
Minimal config
localroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs { "config", "data", "state", "cache" } dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.uv.fs_stat(lazypath) thenvim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"nvim-telescope/telescope.nvim",
dependencies= {
"nvim-lua/plenary.nvim",
},
config=function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUErequire("telescope").setup {}
end,
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
The text was updated successfully, but these errors were encountered:
Description
When using
buffers
picker withsort_lastused
option enabled, entry at index 2 stays selected until only one entry left, even though there's better match at index 1. With additional option 'ignore_current_buffer` enabled selection works as expected.Neovim version
Operating system and version
arch linux
Telescope version / branch / rev
master branch commit 5972437
checkhealth telescope
Steps to reproduce
nvim -nu minimal.lua
Telescope buffers sort_lastused=true
Expected behavior
After start typing in
buffers
picker withsort_lastused
option enabled, selection goes to entry at index 1.Actual behavior
sort_lastused.wierd.behavior.mp4
With
ignore_current_buffer
enabled:ok.with.ignore_current_buffer.mp4
Minimal config
The text was updated successfully, but these errors were encountered: