Relative Content

Tag Archive for neovimtelescope.nvim

Telescope find_files sorting

Is there a way to adjust the result sorting in find_files to prioritize file name matches first? Currently, it seems that matches in file names and path names are scored equally. Since I often search for specific files, I sometimes have to scroll quite a bit to find the match I am looking for. I understand that I could theoretically override the file_sorter property with a custom implementation, but I am concerned that parsing the results and extracting file names to score them differently might significantly impact performance. Is there a better or pre-built way to achieve the same result?

telescope scan all files in the disk when excute find_files in Neovim

enter image description hereI currently move my focus to Neovim and have installed a lot of plugins. The most confusing one is telescope. Every time I tried to search for files in current working directory, it scans all files in my disk and display. I also use nvim-tree for as files explorer. How can I make it only scan files in open directories?