nvim: Prefix the fuzzy finder bindings with Leader

We want to use the standard vim f,F motions so free them up.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-02-26 10:15:22 +05:30
parent cae810ad02
commit 5af317e87c

View file

@ -202,24 +202,24 @@ vnoremap ; :
nnoremap Q <Nop> nnoremap Q <Nop>
" For Fuzzy " For Fuzzy
nnoremap ff :GFiles<CR> nnoremap <Leader>ff :GFiles<CR>
nnoremap f? :GFiles?<CR> nnoremap <Leader>f? :GFiles?<CR>
nnoremap fF :Files<CR> nnoremap <Leader>fF :Files<CR>
nnoremap fb :Buffers<CR> nnoremap <Leader>fb :Buffers<CR>
nnoremap fL :Lines<CR> nnoremap <Leader>fL :Lines<CR>
nnoremap fl :BLines<CR> nnoremap <Leader>fl :BLines<CR>
nnoremap ft :BTags<CR> nnoremap <Leader>ft :BTags<CR>
nnoremap fT :Tags<CR> nnoremap <Leader>fT :Tags<CR>
nnoremap fc :BCommits<CR> nnoremap <Leader>fc :BCommits<CR>
nnoremap fC :Commits<CR> nnoremap <Leader>fC :Commits<CR>
nnoremap fh :History:<CR> nnoremap <Leader>fh :History:<CR>
nnoremap fH :History/<CR> nnoremap <Leader>fH :History/<CR>
nnoremap fm :Commands<CR> nnoremap <Leader>fm :Commands<CR>
nnoremap fo :Locate<SPACE> nnoremap <Leader>fo :Locate<SPACE>
nnoremap fk :Maps<CR> nnoremap <Leader>fk :Maps<CR>
nnoremap fr :FZFMru<CR> nnoremap <Leader>fr :FZFMru<CR>
nnoremap f/ :Rg<CR> nnoremap <Leader>f/ :Rg<CR>
nnoremap fs :exe ':Rg ' . expand('<cword>')<CR> nnoremap <Leader>fs :exe ':Rg ' . expand('<cword>')<CR>
imap <C-x><C-w> <plug>(fzf-complete-word) imap <C-x><C-w> <plug>(fzf-complete-word)
imap <C-x><C-p> <plug>(fzf-complete-path) imap <C-x><C-p> <plug>(fzf-complete-path)
imap <C-x><C-f> <plug>(fzf-complete-file) imap <C-x><C-f> <plug>(fzf-complete-file)
@ -277,7 +277,7 @@ nnoremap <Leader>sh :GitGutterStageHunk<CR>
nnoremap <Leader>uh :GitGutterUndoHunk<CR> nnoremap <Leader>uh :GitGutterUndoHunk<CR>
nnoremap <Leader>ph :GitGutterPreviewHunk<CR> nnoremap <Leader>ph :GitGutterPreviewHunk<CR>
nnoremap <Leader>qh :GitGutterQuickFix<CR> nnoremap <Leader>qh :GitGutterQuickFix<CR>
nnoremap <Leader>fh :GitGutterFold<CR> nnoremap <Leader>hf :GitGutterFold<CR>
" For Neomake/Neoformat " For Neomake/Neoformat
nnoremap <Leader>nm :Neomake<CR> nnoremap <Leader>nm :Neomake<CR>
nnoremap <Leader>nc :NeomakeClean<CR> nnoremap <Leader>nc :NeomakeClean<CR>