1
0
Fork 0

nvim: Use fd instead of rg for finding files

This commit is contained in:
Jeremy Kaplan 2021-11-12 22:54:54 -08:00
commit 6b231e8192

View file

@ -111,7 +111,7 @@ map <silent> ;x :x<CR>
set wildignore+=*.swp,*~ set wildignore+=*.swp,*~
map <silent> ;b :Buffers<CR> map <silent> ;b :Buffers<CR>
map <silent> ;f :call fzf#run({'source': 'rg --files --hidden', 'sink': 'e', 'options': '--multi'})<CR> map <silent> ;f :call fzf#run({'source': 'fd', 'sink': 'e', 'options': '--multi'})<CR>
function! s:escape(path) function! s:escape(path)
return substitute(a:path, ' ', '\\ ', 'g') return substitute(a:path, ' ', '\\ ', 'g')