Skip to content

feat: enum support via ---@alias - #16

Merged
numToStr merged 1 commit into
masterfrom
enum
May 13, 2022
Merged

numToStr merged 1 commit into
masterfrom
enum

Conversation

@numToStr

@numToStr numToStr commented May 12, 2022 •

Copy link
Copy Markdown
Owner

Syntax

local U = {}

---@alias VMode
---| 'line' Vertical motion
---| 'char' Horizontal motion
---| 'v'
---| 'V' # Visual Line Mode

---Global vim mode
---@type VMode
U.VMODE = 'line'

return U

Help

VMode                                                                    *VMode*

    Variants: ~
        ('line')  Vertical motion
        ('char')  Horizontal motion
        ('v')
        ('V')     Visual Line Mode


U.VMODE                                                                *U.VMODE*
    Global vim mode

    Type: ~
        (VMode)

@numToStr
numToStr force-pushed the enum branch 2 times, most recently from 5262fb8 to 844a84d Compare May 12, 2022 10:35
@numToStr
numToStr merged commit c251679 into master May 13, 2022
@numToStr
numToStr deleted the enum branch May 13, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant