Split panel - variables already declared

How do I fix the errors that say the variables are already declared? These are two totally different and separate files. What’s wrong in my configuration?

And the terrible thing is that if I close one of the panels it all stays the same, and I have to restart nvim for it to look well again, look: