In a skillet, sauté the onion, carrots, and celery in olive oil until softened. Add the garlic and seasonings and cook briefly until fragrant.
Transfer the vegetables to the slow cooker. Stir in the tomatoes, cannellini beans, zucchini, vegetable broth, and water.
Cover and cook on LOW for 6 to 7 hours or HIGH for 3 to 4 hours, until the vegetables are tender.
Add the pasta during the last 30 minutes of cooking. Once tender, stir in the spinach or kale and cook until wilted.
Finish with lemon juice if desired, adjust the seasoning to taste, and serve warm.