Use the setting binary_file_patterns
:
These files will still show up in the side bar, but won’t be included in
Goto Anything
orFind in Files
Add this to your Sublime Text config:
"binary_file_patterns": [
...
"deps/**/*",
"_build/**/*",
"docs/**/*",
"**/node_modules/**/*"
]