Skip to content

Commit

Permalink
When in git directory only index the gited files
Browse files Browse the repository at this point in the history
To solve a problem with node_modules, see
ludovicchabant/vim-gutentags#316
  • Loading branch information
MasseR committed Sep 21, 2022
1 parent d90a06d commit 1ca0ea3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vimrc/generic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set wildignore+=*/.git/*,*.orig,*_LOCAL_*,*_REMOTE_*,*_BACKUP_*,*_BASE_*
set wildignore+=*.hi,*.o,*/dist/*,*_o,*/dist-newstyle/*
" Javascript ignore
set wildignore+=*/node_modules/*
set wildignore+=*/output/*
" Nix results. The 'result' symlinks get expanded to /nix/store, so I need to
" have that as the ignore
set wildignore+=result-*/*
Expand Down Expand Up @@ -126,5 +127,10 @@ if executable("hasktagging")
endif
if executable("ctags")
let g:gutentags_ctags_executable = 'ctags'
let g:gutentags_file_list_command = {
\ 'markers': {
\ '.git': 'git ls-files',
\ },
\ }
endif

0 comments on commit 1ca0ea3

Please sign in to comment.