Let me introduce the case of my country, Poland:
Bottom line: solar was 5.26% of the electricity mix in 2022 despite not even registering in annual reports as recently as in 2019.
People here generally lean conservative and don't think in terms of carbon footprints and whatnot. The grid is largely coal-based and until recently this was supposed to remain the case until resources run out.
Starting this year there are already hours during which solar supplies more power to the grid than coal, even though just three years earlier(2020) at 1.1% it barely registered in annual energy production reports. It's predicted to be over 7% of the mix this year.
Many different reasons for such an explosion in popularity, but ultimately they boil down to one thing: money talks. It's no secret that Poland is a net energy importer and the solar farms help in relying less on e.g. Germany in this regard and saving money in the process.
It's gaining ground because it's simply cheap and easy to deploy.
Meanwhile the nuclear power plant(s), plans for which started in earnest in 2008, is yet to start construction. Perhaps we'll have one by 2030, but I wouldn't hold my breath.