aboutsummaryrefslogtreecommitdiff
path: root/core/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-16 21:17:58 +0800
committerjdhao <jdhao@hotmail.com>2021-10-16 21:17:58 +0800
commit481a4e5c0e8e77a4685bcd8dbf677fc66da5f115 (patch)
tree0f37b7b5bc72800e8c2955b050da31bd8b0d86a9 /core/plugins.vim
parent768d02b040bb826c544aef42085cb0cb0ba253d4 (diff)
change LeaderF mappings
Make the mapping consistent
Diffstat (limited to 'core/plugins.vim')
-rw-r--r--core/plugins.vim14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 15bd195..a73cf37 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -112,11 +112,19 @@ let g:Lf_ShortcutB = ''
let g:Lf_WorkingDirectoryMode = 'a'
" Search files in popup window
-nnoremap <silent> <leader>f :<C-U>Leaderf file --popup<CR>
+nnoremap <silent> <leader>ff :<C-U>Leaderf file --popup<CR>
+
+" Grep project files in popup window
+nnoremap <silent> <leader>fg :<C-U>Leaderf rg --popup<CR>
+
" Search vim help files
-nnoremap <silent> <leader>h :<C-U>Leaderf help --popup<CR>
+nnoremap <silent> <leader>fh :<C-U>Leaderf help --popup<CR>
+
" Search tags in current buffer
-nnoremap <silent> <leader>t :<C-U>Leaderf bufTag --popup<CR>
+nnoremap <silent> <leader>ft :<C-U>Leaderf bufTag --popup<CR>
+
+" Switch buffers
+nnoremap <silent> <leader>fb :<C-U>Leaderf buffer --popup<CR>
let g:Lf_PopupColorscheme = 'gruvbox_material'
"}}