Open Wordluc opened 1 month ago
Bug: Basically, the path sometimes uses "/" and other times "\". The firstname option works with "\", so I replaced "/" with "\". After that, the option works correctly. I modified the file: __internal.lua.
Temporary solution used:
local info = vim.fn.getbufinfo(bufnr)[1]
info.name = info.name:gsub("[/]", "\\")
local element = {
bufnr = bufnr,
flag = flag,
info = info,
}
fixing pull request: https://github.com/nvim-telescope/telescope.nvim/pull/3176#issue-2361716277
It also doesn't work with git_files picker. It works fine with find_files.
Description
When using Telescope.nvim to display buffers, the buffer list does not show the file names first. This issue occurs even though the path_display option is set to show file names first (for files/grep, this setting works correctly).
Neovim version
Operating system and version
Windows 11
Telescope version / branch / rev
master
checkhealth telescope
Steps to reproduce
set the options
path_display = { filename_first = { reverse_directories = false } }
after (restart nvim), the options is applied of the other search but bufferExpected behavior
see each each buffer with the name first
Actual behavior
some buffer have the name first other not
Minimal config