brookhong / cscope.vim

A vim plugin to help you to create/update cscope database and connect to existing proper database automatically.
120 stars 33 forks source link

How to exclude directories #25

Closed ghost closed 7 years ago

ghost commented 8 years ago

Hi,

Can we get fix to exclude directories from the project ? I do not want to include files which are part of specific directories under the project directories

brookhong commented 7 years ago

Fixed with commit https://github.com/brookhong/cscope.vim/commit/a9942da694e92dc938ad8d6c06a823c2434a47ea

Specify the sub directories you want to exclude when building cscope database, for example:

let g:cscope_ignored_dir = 'node_modules$\|dist$'
c02y commented 5 years ago

It seems it doesn't work.

I'm using

let g:cscope_ignored_dir = '.ccls-cache$\|test$'

or

let g:cscope_ignored_dir = '.ccls-cache'

and when I open a cpp file, and use cscope function, it still displays the result from .ccls-cache directory. and :let g:cscope_ignored_dir is the variable I set.