From a2e57301650150aba3d5731c69811fbb9e98cab9 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 4 Dec 2019 12:20:57 +0530 Subject: [PATCH] nvim: init.vim: Switch to LeaderF Ditch our plans to have vimscript only plugins. This seems to provide much more functionality than clap & we are dependent on pynvim anyways because we are gonna keep using deoplete. --- nvim/init.vim | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) 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!