From bedb5d0769595350287ba104523bebfb26d0e521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 24 Oct 2021 15:48:54 +0200 Subject: [PATCH] Hidden the fzf [TO REMOVE] --- .config/nvim/init.vim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 61ba6e0..30ebcbf 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -56,8 +56,9 @@ call plug#begin('~/.config/nvim/plugged') Plug 'gruvbox-community/gruvbox', { 'as': 'gruvbox'} " Fzf plugin - Plug 'junegunn/fzf.vim' - Plug 'junegunn/fzf' + " Plug 'junegunn/fzf.vim' + " Plug 'junegunn/fzf' + " Telescope Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' @@ -140,19 +141,19 @@ let g:ansible_extra_keywords_highlight = 1 au BufRead,BufNewFile *.yml set filetype=yaml.ansible " fzf -let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*"' +let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.local/share/nvim/*" -not -path "./Library/*" ' command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(), 1, 0) command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('')), 1, 0) set grepprg=rg\ --vimgrep -nmap e :Buffers -nmap q :Rg -nmap w :Files -nmap :Files nmap e :Telescope buffers nmap q :Telescope live_grep nmap w :Telescope find_files +"nmap e :Buffers +"nmap q :Rg +"nmap w :Files + " Resize window nnoremap :vertical resize +5 nnoremap :vertical resize -5