Simply. If a file is renamed and exists in a buffer. Close the old buffer and open a new one with the old file. Probably only do the last part if it is in a window.