From c0df5bc03bed8680e6fe450f928c7ae3bc1c727f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik.tjader@nordicsemi.no> Date: Mon, 1 Aug 2022 16:11:59 +0200 Subject: [PATCH] Try to ignore SVD files --- .vimrc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index dc52951..9e3d504 100644 --- a/.vimrc +++ b/.vimrc @@ -1163,8 +1163,7 @@ let g:fzf_preview_window = 'right:60%' let g:fzf_buffers_jump = 1 " [Buffers] to existing split -let $FZF_DEFAULT_COMMAND='rg --vimgrep --no-heading --color=never --smart-case --hidden --files-with-matches -g\!.git -g\!.pijul -g\!.ccls-cache . || git ls-tree -r --name-only HEAD || fd --type f || find .' - +let $FZF_DEFAULT_COMMAND='rg --vimgrep --no-heading --color=never --smart-case --hidden --files-with-matches -g\!.git -g\!.pijul -g\!.ccls-cache -g\!\*.svd . || git ls-tree -r --name-only HEAD || fd --type f || find .' "Get Files "command! -bang -nargs=? -complete=dir Files @@ -1172,13 +1171,13 @@ let $FZF_DEFAULT_COMMAND='rg --vimgrep --no-heading --color=never --smart-case - "" Get text in files with Rg "command! -bang -nargs=* Rg - "\ call fzf#vim#grep( - "\ 'rg --column --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>), 1, - "\ fzf#vim#with_preview(), <bang>0) +" \ call fzf#vim#grep( +" \ 'rg --vimgrep --no-heading --color=always --smart-case --hidden -g\!.git -g\!.pijul -g\!.ccls-cache -g\!\*.svd .'.shellescape(<q-args>), 1, +" \ fzf#vim#with_preview(), <bang>0) " Ripgrep advanced function! RipgrepFzf(query, fullscreen) - let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case --hidden -g\!.git -g\!.pijul -g\!.ccls-cache %s || true' + let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case --hidden -g\!.git -g\!.pijul -g\!.ccls-cache -g\!\*.svd %s || true' let initial_command = printf(command_fmt, shellescape(a:query)) let reload_command = printf(command_fmt, '{q}') let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]} -- GitLab