Skip to content

Snippet for pushing element to array #1015

@Silzinc

Description

@Silzinc

Hello! Another snippet that I used quite often with LuaLS completes someTable[<CURSOR>] into someTable[#someTable + 1] = <CURSOR>. I have not found it with emmylua, is it already implemented? How do I trigger it if it is? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions