Skip to content

No examples of argTypes on README.md #30

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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