Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 13, 2022
Merged

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

merged 1 commit into from
May 13, 2022

Conversation

numToStr
Copy link
Owner

@numToStr numToStr commented May 12, 2022

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