pub fn get_config_dir() -> Option<PathBuf>Expand description
Get the XDG-compliant configuration directory for vtcode.
Follows the Ratatui recipe pattern for config directories:
- Check environment variable VTCODE_CONFIG for custom location
- Use XDG Base Directory Specification via ProjectDirs
- Fallback to legacy ~/.vtcode/ for backwards compatibility
Returns None if no suitable directory can be determined.