1
0
Fork 0

nvim: Enable multi-select in fzf shortcuts

This commit is contained in:
Jeremy Kaplan 2020-09-27 22:59:01 -07:00
commit 215f61b6f9

View file

@ -113,7 +113,7 @@ map <silent> ;x :x<CR>
set wildignore+=*.swp,*~
map <silent> ;b :Buffers<CR>
map <silent> ;f :call fzf#run({'source': 'rg --files --hidden', 'sink': 'e'})<CR>
map <silent> ;f :call fzf#run({'source': 'rg --files --hidden', 'sink': 'e', options: '--multi'})<CR>
function! s:escape(path)
return substitute(a:path, ' ', '\\ ', 'g')
@ -130,12 +130,12 @@ endfunction
map <silent> ;g :call fzf#run({
\ 'source': 'rg --vimgrep --no-heading --smart-case --hidden --regexp '.shellescape(input('Pattern: ')),
\ 'sink': function('RgHandler'),
\ 'options': '+m',
\ 'options': '--multi',
\})<CR>
map <silent> ;* :call fzf#run({
\ 'source': 'rg --vimgrep --no-heading --smart-case --hidden --regexp '.shellescape(expand('<cword>')),
\ 'sink': function('RgHandler'),
\ 'options': '+m',
\ 'options': '--multi',
\})<CR>
command ALEOff :let b:ale_fix_on_save = 0