nvim: Add FZF MRU plugin

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-01-13 14:30:48 +05:30
parent 495e537e08
commit 04f63d2a19

View file

@ -13,6 +13,7 @@ Plug 'haya14busa/incsearch.vim'
Plug 'haya14busa/incsearch-easymotion.vim'
" Fuzzy search
Plug 'junegunn/fzf.vim'
Plug 'pbogut/fzf-mru.vim'
" Remove extraneous whitespace when edit mode is exited
Plug 'thirtythreeforty/lessspace.vim'
" Status bar mods
@ -219,6 +220,7 @@ nnoremap fsh :History/<CR>
nnoremap fm :Commands<CR>
nnoremap fo :Locate<SPACE>
nnoremap fk :Maps<CR>
nnoremap fr :FZFMru<CR>
nnoremap f/ :Rg<CR>
nnoremap * :exe ':Rg ' . expand('<cword>')<CR>
imap <C-x><C-w> <plug>(fzf-complete-word)
@ -657,6 +659,9 @@ let g:lisp_rainbow=1
" For Purescript
let g:psc_ide_auto_imports = 1
" FZF
let g:fzf_mru_no_sort = 1
" ----------------------------- Functions ------------------------------------
function! Cscope(option, query)
let color = '{ x = $1; $1 = ""; z = $3; $3 = ""; printf "\033[34m%s\033[0m:\033[31m%s\033[0m\011\033[37m%s\033[0m\n", x,z,$0; }'