summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-03-13 22:50:38 -0700
committerMatt Turner <mattst88@gmail.com>2022-03-13 22:50:38 -0700
commitdf4847e481f9b896b32a9f9885581e948cf10841 (patch)
treec042ebd41cacb32d32ff369426448671da2d81dd
parent15e52ed835cda54b63ed1eb0ae6fda85df741bac (diff)
nvim: Add fzf key bindings
-rw-r--r--.config/nvim/fzf.vim5
-rw-r--r--.config/nvim/init.vim1
2 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/fzf.vim b/.config/nvim/fzf.vim
new file mode 100644
index 0000000..cef3936
--- /dev/null
+++ b/.config/nvim/fzf.vim
@@ -0,0 +1,5 @@
+map <leader>b :Buffers<cr>
+
+nnoremap <silent> <Leader>gr :Rg<CR>
+nnoremap <silent> <Leader>gg :GFiles<CR>
+nnoremap <silent> <Leader>gf :Files<CR>
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 1fe72bc..91e3378 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -2,4 +2,5 @@ set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
source ~/.config/nvim/coc.vim
+source ~/.config/nvim/fzf.vim
source ~/.config/nvim/plugins.vim