diff options
-rw-r--r-- | nvim/init.vim | 12 |
1 files changed, 12 insertions, 0 deletions
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 <silent> <Leader>pm :Denite file_mru<CR> noremap <silent> <Leader>pb :Denite buffer<CR> noremap <silent> <Leader>px :Denite buffer file_mru file_rec<CR> noremap <silent> <Leader>pg :Denite grep<CR> + +map <C-p> :FzfFiles<CR> +nmap <leader>; :FzfBuffers<CR> |