You can find information about smoking on The Smoking Section of the Memory Alpha Star Trek Wikia.
In the Wrath of Khan there were signs prohibition smoking in certain areas.
According to signs posted in the transporter room of the USS
Enterprise in the 2280s, smoking was prohibited in that area. Smoking
was also prohibited in the Mark IV bridge simulator. (Star Trek II:
The Wrath of Khan)
There were also scenes of holograms smoking as well.
Fictional characters of the Dixon Hill novels and stories also smoked.
When Jean-Luc Picard played the role of Hill in the holoprogram
version, he was offered a cigarette on at least two occasions. (TNG:
"The Big Goodbye", "Manhunt") Nicky the Nose was another character
seen smoking as well as several nightclub patrons. (Star Trek: First
There were also other people who smoked such as Data but he only did so taking on the role of Sherlock, just as Deanna portraying Durango. The picture below the quote is Worf playing the character Duchamps.
Also in the holodeck, Deanna Troi smoked a cigar while in character as
Durango, the mysterious stranger who comes to Sheriff Worf's aid in
the town of Deadwood, (TNG: "A Fistful of Datas") and Data
occasionally smoked a pipe in the role of Sherlock Holmes. (TNG:
"Lonely Among Us", "Elementary, Dear Data", "Ship in a Bottle")
Funny enough in the background section of this portion of the wikia it states that smoking in the future wasn't really common among humans.
In Star Trek II: The Wrath of Khan, director Nicholas Meyer had "No
Smoking" signs posted on the bridge of the Enterprise. According to
the text commentary for the film, at Gene Roddenberry's insistence,
they were removed. Roddenberry felt that enlightened future Humans
would not have hang-ups or addictions like smoking. The "No Smoking"
sign can still be seen on the bridge in the opening "Kobayashi Maru"