Trending does have an impact.
But by experience, having a killer feature, and a good adoption story usually does much more.
E.G:
- PHP: easy to make web page in 2001
- JS: monopoly on the client side web
- Go: simple concurrency and binary production
- Rust: borrow checker
- Python: "yes, you can do that too. Also in 2 lines"
Etc.