diff --git a/nvim/init.vim b/nvim/init.vim index c194e27..0dbfb3b 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -9,7 +9,7 @@ Plug 'ervandew/supertab' " of words. Plug 'easymotion/vim-easymotion' " Fuzzy search -Plug 'liuchengxu/vim-clap' +Plug 'Yggdroot/LeaderF', { 'do': './install.sh' } " Remove extraneous whitespace when edit mode is exited Plug 'thirtythreeforty/lessspace.vim' " Status bar mods @@ -194,18 +194,17 @@ nnoremap Q nnoremap pg :PlugUpgrade nnoremap pd :PlugUpdate nnoremap pc :PlugClean -" For Clap -nnoremap vf :Clap files -nnoremap vg :Clap gfiles -nnoremap vb :Clap buffers -nnoremap vL :Clap lines -nnoremap vl :Clap blines -nnoremap vc :Clap bcommits -nnoremap va :Clap commits -nnoremap vh :Clap history -nnoremap vm :Clap command -nnoremap / :Clap grep -nnoremap d :Clap grep ++query= +" For Fuzzy +nnoremap vf :LeaderfFile +nnoremap vb :LeaderfBuffer +nnoremap vL :LeaderfLineAll +nnoremap vl :LeaderfLine +nnoremap vh :LeaderfHistorySearch +nnoremap vc :LeaderfHistoryCmd +nnoremap vt :LeaderfTag +nnoremap vw :LeaderfTagCword +nnoremap vm :LeaderfMru +nnoremap d :exe ':Leaderf! rg -e ' . expand("") " Quick buffer switching nnoremap b :ls:b " Undo tree @@ -463,6 +462,10 @@ let g:slime_no_mappings = 1 let g:slime_python_ipython = 1 let g:slime_dont_ask_default = 1 let g:slime_preserve_curpos = 0 +" For LeaderF +let g:Lf_WindowPosition = 'popup' +let g:Lf_PreviewInPopup = 1 +let g:Lf_CommandMap = {'': [''], '': ['']} augroup Terminal au!