Skip to content

No examples of argTypes on README.md #30

@iMatthias

Description

@iMatthias

README.md lacks an example of field argTypes in .luacompleterc. I tried to write like the following but it didn't seem to have any effect.

  "namedTypes": {
    "cat": {
      "type": "table",
      "fields": {
        "color": { "type": "string" },
        "is_fluffy": { "type": "boolean" },
		"meow":
		{
			"type": "function",
  			"args": [{ "name": "self" }, { "name": "arg1" }, { "name": "arg2" }],
			"argTypes": [{ "type": "ref", "name": "cat" }, { "type": "ref", "name": "cat" }, { "type": "ref", "name": "cat" }],
			"returnTypes": [{ "type": "ref", "name": "cat" }]
		}
      }
    }
  },

My expectation was that with a settings like the above, I will be able to see an autocomplete based on the type:

function cat.meow(self, arg1, arg2)
	arg1. -- ... autocomplete?
end

Is argTypes not supposed to work that way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions