Skip to content
Snippets Groups Projects
Commit c0df5bc0 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Try to ignore SVD files

parent 3cc9aeea
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -1173,12 +1172,12 @@ 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,
" \ '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]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment