Use telescope.nvim to make a list of directories you want to fuzzy find in.
- Using vim-plug
Plug 'torbratsberg/telescope-dir-find'
nmap <leader>nf :lua require('dirfind').search_dirs()<cr>
nmap <leader>nd :lua require('dirfind').select_dirs()<cr>
- If using keymaps above, press
<leader>nd
and find the directories you want to search in. - Select them by pressing
<tab>
. - When done with selecting dirs, press
<cr>
/<Enter>
- Press
<leader>nf
to search in your selected folders.
- Set default dirs to search in
let g:search_dirs = [LIST OF DIRS TO SEARCH IN BY DEFAULT]