nvim: add fzf plugin

This commit is contained in:
Charles Gould 2020-04-19 21:41:29 -05:00
parent 59f0fba5f4
commit 667cf34267
2 changed files with 11 additions and 0 deletions

1
nvim/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.netrwhist

View File

@ -9,6 +9,8 @@ endif
call plug#begin('~/.cache/nvim/plugged')
Plug 'https://github.com/blankname/vim-fish' " fish scripting
Plug 'https://github.com/farmergreg/vim-lastplace' " intelligently reopen files at last edit position
Plug 'https://github.com/junegunn/fzf' " fuzzy finder
Plug 'https://github.com/junegunn/fzf.vim' " fuzzy finder for vim
Plug 'https://github.com/ntpeters/vim-better-whitespace' " highlights trailing whitespace, :StripWhitespace to remove
Plug 'https://github.com/tpope/vim-sensible' " defaults everyone can agree on
Plug 'https://github.com/tpope/vim-sleuth' " heuristically set buffer options
@ -22,6 +24,14 @@ nnoremap <silent> <F2> :set number! relativenumber!<Return>
" clear highlighting with escape key
nnoremap <silent> <Esc> :noh<Return><Esc>
" fzf settings
let g:fzf_command_prefix = 'Fzf'
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
nmap <Leader><Tab> <Plug>(fzf-maps-n)
xmap <Leader><Tab> <Plug>(fzf-maps-x)
omap <Leader><Tab> <Plug>(fzf-maps-o)
nnoremap <C-P> :FzfFiles<Return>
" disable match highlighting
let g:loaded_matchparen=1