From 95c1227ffab0750f110965c2c51cac9f57eac038 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 19 Jul 2018 14:44:13 +0200 Subject: nvim: Add fzf and vim-rooter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nvim') diff --git a/nvim/init.vim b/nvim/init.vim index 2a81784..105849e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -10,6 +10,12 @@ Plug 'chriskempson/base16-vim' " Modeline replacement Plug 'itchyny/lightline.vim' +" Change working directory to project root when opening file +Plug 'airblade/vim-rooter' + +" Fuzzy finder. Requires fzf package to be installed +Plug 'junegunn/fzf.vim' + " Better syntax highlighting Plug 'rust-lang/rust.vim' Plug 'tpope/vim-git' @@ -29,6 +35,9 @@ let g:lightline = { \ 'colorscheme': 'wombat', \ } +" Fzf +let g:fzf_command_prefix = 'Fzf' + """ " NVim settings @@ -112,3 +121,6 @@ noremap pm :Denite file_mru noremap pb :Denite buffer noremap px :Denite buffer file_mru file_rec noremap pg :Denite grep + +map :FzfFiles +nmap ; :FzfBuffers -- cgit v1.2.3-70-g09d2