[git] add .ccls-cache to the global ignore list

This commit is contained in:
Dmytro Meleshko 2021-07-01 19:14:37 +03:00
parent b927660c2f
commit 8f933e667b
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
Session.vim
.project.vim
.DS_Store
.ropeproject
.ropeproject/
.ccls-cache/
*~

View file

@ -11,7 +11,7 @@ nnoremap <silent><expr> <CR> empty(&buftype) ? ":write<bar>wall\<CR>" : "\<CR>"
if executable('rg')
let s:rg_cmd = "rg --hidden --follow"
let s:rg_ignore = split(&wildignore, ',') + [
\ 'node_modules', 'target', 'build', 'dist', '.stack-work'
\ 'node_modules', 'target', 'build', 'dist', '.stack-work', '.ccls-cache'
\ ]
let s:rg_cmd .= " --glob '!{'" . shellescape(join(s:rg_ignore, ','), 1) . "'}'"