Skip to content

Autocompletion does not support module.common #615

@LJSonik

Description

@LJSonik

init.lua:

local greetings = require 'greetings'

greetings. -- No autocompletion for 'hi' and 'hello'

greetings/greetings.lua:

local m = require 'greetings.common'

dofile 'greetings/hi.lua'
dofile 'greetings/hello.lua'

return m

greetings/hi.lua:

local m = require 'greetings.common'

function m.hi()
    print 'hi'
end

greetings/hello.lua:

local m = require 'greetings.common'

function m.hello()
    print 'hello'
end

The hi and hello functions do not appear in the autocompletion list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority.lowA low priority topicwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions