From 667cf34267f8bc28a0d0ad2416e0d73a92ae44e6 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Sun, 19 Apr 2020 21:41:29 -0500 Subject: [PATCH] nvim: add fzf plugin --- nvim/.gitignore | 1 + nvim/init.vim | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 nvim/.gitignore diff --git a/nvim/.gitignore b/nvim/.gitignore new file mode 100644 index 0000000..a0e76af --- /dev/null +++ b/nvim/.gitignore @@ -0,0 +1 @@ +.netrwhist diff --git a/nvim/init.vim b/nvim/init.vim index a2ae6bf..2e56d8c 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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 :set number! relativenumber! " clear highlighting with escape key nnoremap :noh +" fzf settings +let g:fzf_command_prefix = 'Fzf' +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } +nmap (fzf-maps-n) +xmap (fzf-maps-x) +omap (fzf-maps-o) +nnoremap :FzfFiles + " disable match highlighting let g:loaded_matchparen=1