No require needed for defos?

I’ve found old documentation where you have to

local defos = require "defos.defos"

but this no longer seems to be the case - I can’t find any documentation on the defos github page that says you have to do this.

Why do we have to require some dependencies in our scripts and sometimes we don’t, how do we know when we have to and when we don’t?

If the extension is a lua module then you need to require, but if it’s a native extension then you don’t.

Each extension should have installation instructions which guide you through this.

3 Likes