aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:44:13 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2018-07-19 14:44:13 +0200
commit95c1227ffab0750f110965c2c51cac9f57eac038 (patch)
tree86f596609db75f996e75347f5feea869887f9224
parent6727d0dbd55f5f15584b08b4b588f0436edc2ebd (diff)
downloaddotfiles-95c1227ffab0750f110965c2c51cac9f57eac038.tar.xz
nvim: Add fzf and vim-rooter
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nvim/init.vim12
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>