aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-20 16:53:51 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-20 16:53:51 +0300
commit26c5e5736d5c345f32def21e71d92a974b4899f3 (patch)
tree39f319c62159b311b0931b28fe209d2345c45711 /dotfiles/.config/nvim
parent57081e24549e00be2c4d82b2fc11d0dddc02c2df (diff)
downloadvimrice-26c5e5736d5c345f32def21e71d92a974b4899f3.tar.gz
vimrice-26c5e5736d5c345f32def21e71d92a974b4899f3.zip
fzf: fzf.vim plugin to search with ripgrep
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r--dotfiles/.config/nvim/init.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 1bd1e84..9469af9 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -13,6 +13,7 @@ call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'tpope/vim-commentary'
Plug 'junegunn/fzf'
+ Plug 'junegunn/fzf.vim'
Plug 'preservim/nerdtree'
Plug 'ervandew/supertab'
Plug 'jamessan/vim-gnupg'
@@ -199,8 +200,6 @@ call plug#end()
" For normal mode when can't remap caps to escape
inoremap jw <Esc>
inoremap wj <Esc>
- vnoremap jw <Esc>
- vnoremap wj <Esc>
" SuperTab
let g:SuperTabDefaultCompletionType = "context"
@@ -211,8 +210,11 @@ call plug#end()
map <leader>к :NERDTreeToggle<CR>
" FZF
- map <leader>f :FZF<CR>
- map <leader>а :FZF<CR>
+ let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-\']
+ map <leader>f :Files<CR>
+ map <leader>а :Files<CR>
+ map <leader>F :Rg
+ map <leader>А :Rg
" Open new terminal in current directory
map <leader>t :!setsid $TERMINAL &<CR>