aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugins/leaderf.vim
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-03-16 19:47:31 +0800
committergxlin <[email protected]>2021-03-18 23:57:40 +0800
commitbd166c76b65006f2945d5072fe07e4777c085eff (patch)
tree1338f3b55e33d4f42bdc12f36d5a50557c01e70f /.vim/plugins/leaderf.vim
parent06929ba11c0ef83da2462f60ee8c6dc07a2aa9a4 (diff)
downloaddotfiles-bd166c76b65006f2945d5072fe07e4777c085eff.tar.gz
dotfiles-bd166c76b65006f2945d5072fe07e4777c085eff.tar.bz2
dotfiles-bd166c76b65006f2945d5072fe07e4777c085eff.zip
More vim config
Diffstat (limited to '.vim/plugins/leaderf.vim')
-rw-r--r--.vim/plugins/leaderf.vim8
1 files changed, 4 insertions, 4 deletions
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 = "<leader>ff"
@@ -12,11 +10,13 @@ noremap <leader>fb :<C-U><C-R>=printf("Leaderf buffer %s", "")<CR><CR>
noremap <leader>fm :<C-U><C-R>=printf("Leaderf mru %s", "")<CR><CR>
noremap <leader>ft :<C-U><C-R>=printf("Leaderf bufTag %s", "")<CR><CR>
noremap <leader>fl :<C-U><C-R>=printf("Leaderf line %s", "")<CR><CR>
+noremap <leader>fr :<C-U><C-R>=printf("Leaderf rg %s", "")<CR><CR>
noremap <C-B> :<C-U><C-R>=printf("Leaderf! rg --current-buffer -e %s ", expand("<cword>"))<CR>
noremap <C-F> :<C-U><C-R>=printf("Leaderf! rg -e %s ", expand("<cword>"))<CR>
" search visually selected text literally
xnoremap gf :<C-U><C-R>=printf("Leaderf! rg -F -e %s ", leaderf#Rg#visual())<CR>
noremap go :<C-U>Leaderf! rg --recall<CR>
-let g:Lf_RootMarkers = ['.project', '.root', '.svn', '.git']
+
let g:Lf_WorkingDirectoryMode = 'AF'
+let g:Lf_RootMarkers = ['.project', '.root', '.svn', '.git', '.hg']