diff options
author | gxlin <[email protected]> | 2021-07-15 21:28:06 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-07-15 21:28:06 +0800 |
commit | d4e1469e4b0c5aaf5c23be555e8b224f9254d781 (patch) | |
tree | e68a0e5dd44ee43efc2d70c081f41ae3237a78c1 /.vim/plugin/leaderf.vim | |
parent | 36f249e1a7250e24f0c415b5bc53ba1b2f5806d4 (diff) | |
download | dotfiles-d4e1469e4b0c5aaf5c23be555e8b224f9254d781.tar.gz dotfiles-d4e1469e4b0c5aaf5c23be555e8b224f9254d781.tar.bz2 dotfiles-d4e1469e4b0c5aaf5c23be555e8b224f9254d781.zip |
A usable boostrap config
Diffstat (limited to '.vim/plugin/leaderf.vim')
-rw-r--r-- | .vim/plugin/leaderf.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.vim/plugin/leaderf.vim b/.vim/plugin/leaderf.vim new file mode 100644 index 0000000..043fe1b --- /dev/null +++ b/.vim/plugin/leaderf.vim @@ -0,0 +1,21 @@ +" " Show icons, icons are shown by default +let g:Lf_ShowDevIcons = 1 + +let g:Lf_WindowPosition = 'popup' +let g:Lf_ShortcutF = "<leader>ff" + +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_WorkingDirectoryMode = 'AF' + +let g:Lf_RootMarkers += ['.project', '.root', '.svn', '.git', '.hg', '.projectile'] |