My advisor gave me a broad topic to research. I found a really good question and have done a big part of the work answering it but, have not finished yet, then applied to a prestigious conference to present a poster and got positive feedback and told him so out of happiness.
Before submitting my work at the conference, I sent my advisor a detailed explanation of my ideas, the key question, the abstract, and the poster for feedback. He gave me none.
I went anyway and did my presentation. And by mere chance now, I found out that he published a paper before me in some journal and he used my ideas in there and even uses my wording but cites different people as if he was the original discoverer. Now I am supposed to submit to him my drafts and I don't trust him anymore. What should I do?
Edit: The paper was accepted and submitted after sending my work to him.
My main question: If I don't trust my advisor anymore, my work is nearly done now. How to get out of that with minimal damage done to myself and my future career?