From 26c5e5736d5c345f32def21e71d92a974b4899f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 20 Jan 2023 16:53:51 +0300 Subject: fzf: fzf.vim plugin to search with ripgrep --- dotfiles/.config/nvim/init.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dotfiles') 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 inoremap wj - vnoremap jw - vnoremap wj " SuperTab let g:SuperTabDefaultCompletionType = "context" @@ -211,8 +210,11 @@ call plug#end() map к :NERDTreeToggle " FZF - map f :FZF - map а :FZF + let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-\'] + map f :Files + map а :Files + map F :Rg + map А :Rg " Open new terminal in current directory map t :!setsid $TERMINAL & -- cgit v1.2.3