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 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).
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 14.1.0 (rev e50df40a19)
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities
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 buffer
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,
}
Wordluc
changed the title
filename_first doentst works with buffer list
filename_first doesn't works with buffer list
Jun 8, 2024
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 buffer
Expected behavior
see each each buffer with the name first
Actual behavior
some buffer have the name first other not
Minimal config
The text was updated successfully, but these errors were encountered: