From bd166c76b65006f2945d5072fe07e4777c085eff Mon Sep 17 00:00:00 2001 From: gxlin Date: Tue, 16 Mar 2021 19:47:31 +0800 Subject: More vim config --- .vim/plugins/leaderf.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.vim/plugins/leaderf.vim') diff --git a/.vim/plugins/leaderf.vim b/.vim/plugins/leaderf.vim index 4d6d0ac..584322a 100644 --- a/.vim/plugins/leaderf.vim +++ b/.vim/plugins/leaderf.vim @@ -1,10 +1,8 @@ -Plug 'Yggdroot/LeaderF', {'do': './install.sh'} +Plug 'Yggdroot/LeaderF', {'do': ':LeaderfInstallCExtension'} " " Show icons, icons are shown by default let g:Lf_ShowDevIcons = 1 -" For GUI vim, the icon font can be specify like this, for example -let g:Lf_DevIconsFont = "DejaVuSansMono Nerd Font Mono" let g:Lf_WindowPosition = 'popup' let g:Lf_ShortcutF = "ff" @@ -12,11 +10,13 @@ noremap fb :=printf("Leaderf buffer %s", "") noremap fm :=printf("Leaderf mru %s", "") noremap ft :=printf("Leaderf bufTag %s", "") noremap fl :=printf("Leaderf line %s", "") +noremap fr :=printf("Leaderf rg %s", "") noremap :=printf("Leaderf! rg --current-buffer -e %s ", expand("")) noremap :=printf("Leaderf! rg -e %s ", expand("")) " search visually selected text literally xnoremap gf :=printf("Leaderf! rg -F -e %s ", leaderf#Rg#visual()) noremap go :Leaderf! rg --recall -let g:Lf_RootMarkers = ['.project', '.root', '.svn', '.git'] + let g:Lf_WorkingDirectoryMode = 'AF' +let g:Lf_RootMarkers = ['.project', '.root', '.svn', '.git', '.hg'] -- cgit v1.2.3