Luther was not well in the period of his life he wrote "On the Jews and Their Lies". Altho this doesn't forgive his illicit hate speech, I hope you understand it came from a human under extreme physical, mental and emotional duress.
The Nazi party was not Lutheran. No where else do they specifically espouse writings of Luther. Someone conveniently picked up any old book on anti-semitism and it happened to be the unfortunate ramblings of a sick old man, even more unfortunately who had been a brave, talented visionary in his earlier days.
They didn't "get their ideas" from Luther. They had their sick ideas and used hundreds-years-old literature to support their twisted itinerary, out of context. It might be more convincing if Nazis killed Jews because they shared Luther's complaint of Jewish conspiracy against Jesus, but they didn't. The viewpoints were far and wide separated in concept.