nvim: init.vim: Switch back to fzf

Since fzf comes installed by default on Manjaro i3 and we
need some fuzzy finder on command line anyways switch to
it. The additional helpers around fzf cannot be ignored.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-12-06 21:05:31 +05:30
parent 6a445e6685
commit 5984a6d528

View file

@ -11,7 +11,8 @@ Plug 'ervandew/supertab'
" of words. " of words.
Plug 'easymotion/vim-easymotion' Plug 'easymotion/vim-easymotion'
" Fuzzy search " Fuzzy search
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' } Plug 'junegunn/fzf.vim'
Plug 'jesseleite/vim-agriculture'
" Remove extraneous whitespace when edit mode is exited " Remove extraneous whitespace when edit mode is exited
Plug 'thirtythreeforty/lessspace.vim' Plug 'thirtythreeforty/lessspace.vim'
" Status bar mods " Status bar mods
@ -198,16 +199,25 @@ nnoremap <Leader>pg :PlugUpgrade<CR>
nnoremap <Leader>pd :PlugUpdate<CR> nnoremap <Leader>pd :PlugUpdate<CR>
nnoremap <Leader>pc :PlugClean<CR> nnoremap <Leader>pc :PlugClean<CR>
" For Fuzzy " For Fuzzy
nnoremap <Leader>vf :LeaderfFile<CR> nnoremap <Leader>vf :GFiles<CR>
nnoremap <Leader>vb :LeaderfBuffer<CR> nnoremap <Leader>v? :GFiles?<CR>
nnoremap <Leader>vL :LeaderfLineAll<CR> nnoremap <Leader>vF :Files<CR>
nnoremap <Leader>vl :LeaderfLine<CR> nnoremap <Leader>vb :Buffers<CR>
nnoremap <Leader>vh :LeaderfHistorySearch<CR> nnoremap <Leader>vL :Lines<CR>
nnoremap <Leader>vc :LeaderfHistoryCmd<CR> nnoremap <Leader>vl :BLines<CR>
nnoremap <Leader>vt :LeaderfTag<CR> nnoremap <Leader>vt :BTags<CR>
nnoremap <Leader>vw :LeaderfTagCword<CR> nnoremap <Leader>vT :Tags<CR>
nnoremap <Leader>vm :LeaderfMru<CR> nnoremap <Leader>vc :BCommits<CR>
nnoremap <Leader>d :exe ':Leaderf! rg -e ' . expand("<cword>")<CR> nnoremap <Leader>vC :Commits<CR>
nnoremap <Leader>vch :History:<CR>
nnoremap <Leader>vsh :History/<CR>
nnoremap <Leader>vm :Commands<CR>
nnoremap <Leader>vo :Locate<SPACE>
nnoremap <Leader>vk :Maps<CR>
nnoremap <Leader>d :exe ':Rg ' . expand('<cword>')<CR>
nnoremap <Leader>/ <Plug>RgRawSearch
vnoremap <Leader>/ <Plug>RgRawVisualSelection
nnoremap <Leader>* <Plug>RgRawWordUnderCursor
" Quick buffer switching " Quick buffer switching
nnoremap <Leader>b :ls<CR>:b<Space> nnoremap <Leader>b :ls<CR>:b<Space>
" Undo tree " Undo tree
@ -301,6 +311,11 @@ noremap <Right> <NOP>
nnoremap <silent> <Leader> :<C-U>WhichKey '<Space>'<CR> nnoremap <silent> <Leader> :<C-U>WhichKey '<Space>'<CR>
command! -bang -nargs=* GGrep
\ call fzf#vim#grep(
\ 'git grep --line-number '.shellescape(<q-args>), 0,
\ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0)
" --------------------------- Autocmd groups --------------------------------- " --------------------------- Autocmd groups ---------------------------------
augroup HaskellMaps augroup HaskellMaps
au! au!
@ -518,10 +533,6 @@ let g:slime_no_mappings = 1
let g:slime_python_ipython = 1 let g:slime_python_ipython = 1
let g:slime_dont_ask_default = 1 let g:slime_dont_ask_default = 1
let g:slime_preserve_curpos = 0 let g:slime_preserve_curpos = 0
" For LeaderF
let g:Lf_WindowPosition = 'popup'
let g:Lf_PreviewInPopup = 1
let g:Lf_CommandMap = {'<C-K>': ['<Up>'], '<C-J>': ['<Down>']}
let g:nvimgdb_config_override = { let g:nvimgdb_config_override = {
\ 'key_next': 'n', \ 'key_next': 'n',
@ -543,6 +554,7 @@ let g:cpp_class_decl_highlight = 1
let g:cpp_posix_standard = 1 let g:cpp_posix_standard = 1
let g:cpp_concepts_highlight = 1 let g:cpp_concepts_highlight = 1
let g:agriculture#rg_options = '--case-sensitive'
" ----------------------------- Functions ------------------------------------ " ----------------------------- Functions ------------------------------------
" For CScope and Quickfix " For CScope and Quickfix
" https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d " https://medium.com/@lakshmankumar12/quickfix-and-location-list-in-vim-ca0292ac894d