I have trouble using require() when files are not in the same directory

Hi,

I am using hyprland 0.55.2.

I know it’s me, I just can’t figure it out. My .lua files are located in /hypr/config while hyprland.lua is in /hypr/ directory. This is what i tried to do according todocs:

require("config.myfile")

And it is not working. What am i missing?

Thank you for your help.

See GitLab discussion.

I cannot reproduce. Works as expected.

Yes, it works now. I am not sure what it was.