-path:nameFolder
You can see other options when you put the cursor in the search box and erase everything in the box if necessary:

Or if you want to exclude indefinitely, go into Preferences > Files & Links > Excluded files
-path:nameFolder
You can see other options when you put the cursor in the search box and erase everything in the box if necessary:

Or if you want to exclude indefinitely, go into Preferences > Files & Links > Excluded files