updated by @tigerlily: 05/22/17 08:04:48AM
You can do your best to stay away from negative people. If someone around you starts talking about something negative tell them you don't want to hear it and that you would appreciate if they wouldn't talk about such things around you. If they don't like that then they don't deserve to be in your life. It is impossible to stay away from negative people all the time but you can block them when you can't shut them down. See the link below. Mostly just try and kick negative people out of your life. They will fight you on it. That is what they do especially if they are family but you have every right not to feel that way and to choose who you spend your time with. Tell people if they can't be positive or at least neutral around you then they can't be around you. Period.