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!: new lua API (using metatables) #183

Merged
merged 6 commits into from
Aug 12, 2022
Merged

feat!: new lua API (using metatables) #183

merged 6 commits into from
Aug 12, 2022

Commits on Aug 3, 2022

  1. feat!: new lua API (using metatables)

    This deprecates the old API and will be removed in the next tagged
    releases probably v0.7
    
    Currently every Lua API is a function call, which is fine, but most of
    them are similar to others only having different arguments and uses same
    call under the hood. This is not extensible if we want to create a new
    mode #17 and have slight maintenance burden.
    
    Using setmetatable we can probably build-up the API as we go. This will
    be extensible and have less maintenance overhead.
    
    This also changes the `ctype` utility. If you are using it then you
    might wanna migrate to the following:
    
    - `U.ctype.line` → `U.ctype.linewise`
    - `U.ctype.block` → `U.ctype.blockwise`
    
    Resolves #180
    numToStr committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    f822d53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47fda91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8482386 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c13a5e View commit details
    Browse the repository at this point in the history
  5. chore: API.md

    numToStr committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    a1753d6 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    1c794d3 View commit details
    Browse the repository at this point in the history