nvim: add fzf plugin
This commit is contained in:
parent
59f0fba5f4
commit
667cf34267
1
nvim/.gitignore
vendored
Normal file
1
nvim/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.netrwhist
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user