There are some plants that are considered bad companion plants for rosemary. It is generally recommended to avoid planting rosemary near vegetables that are prone to fungal diseases. Some vegetables that should not be planted near rosemary include broccoli, Brussels sprouts, cabbage, and cauliflower.