From 215f61b6f939f19ea30f2e146ea205a722894cbc Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Sun, 27 Sep 2020 22:59:01 -0700 Subject: [PATCH] nvim: Enable multi-select in fzf shortcuts --- neovim/init.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neovim/init.vim b/neovim/init.vim index 64d32c2..838be09 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -113,7 +113,7 @@ map ;x :x set wildignore+=*.swp,*~ map ;b :Buffers -map ;f :call fzf#run({'source': 'rg --files --hidden', 'sink': 'e'}) +map ;f :call fzf#run({'source': 'rg --files --hidden', 'sink': 'e', options: '--multi'}) function! s:escape(path) return substitute(a:path, ' ', '\\ ', 'g') @@ -130,12 +130,12 @@ endfunction map ;g :call fzf#run({ \ 'source': 'rg --vimgrep --no-heading --smart-case --hidden --regexp '.shellescape(input('Pattern: ')), \ 'sink': function('RgHandler'), -\ 'options': '+m', +\ 'options': '--multi', \}) map ;* :call fzf#run({ \ 'source': 'rg --vimgrep --no-heading --smart-case --hidden --regexp '.shellescape(expand('')), \ 'sink': function('RgHandler'), -\ 'options': '+m', +\ 'options': '--multi', \}) command ALEOff :let b:ale_fix_on_save = 0