aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugin/leaderf.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/plugin/leaderf.vim')
-rw-r--r--.vim/plugin/leaderf.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/.vim/plugin/leaderf.vim b/.vim/plugin/leaderf.vim
index 043fe1b..41c1088 100644
--- a/.vim/plugin/leaderf.vim
+++ b/.vim/plugin/leaderf.vim
@@ -1,7 +1,14 @@
-" " Show icons, icons are shown by default
let g:Lf_ShowDevIcons = 1
+let g:Lf_UseCache = 0
+
+let g:Lf_CommandMap = {
+ \ '<C-J>': ['<C-N>'],
+ \ '<C-K>': ['<C-P>'],
+ \ '<ESC>': ['<C-G>'],
+ \ }
let g:Lf_WindowPosition = 'popup'
+let g:Lf_PreviewInPopup = 1
let g:Lf_ShortcutF = "<leader>ff"
noremap <leader>fb :<C-U><C-R>=printf("Leaderf buffer %s", "")<CR><CR>
@@ -9,6 +16,9 @@ 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 <leader>fs :<C-U><C-R>=printf("Leaderf self %s", "")<CR><CR>
+noremap <leader>fc :<C-U><C-R>=printf("Leaderf command %s", "")<CR><CR>
+noremap <leader>f<space> :Leaderf<space>
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>