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

Improve snippet-insertion. #941

Merged
merged 7 commits into from
Oct 4, 2023
Merged

Improve snippet-insertion. #941

merged 7 commits into from
Oct 4, 2023

Commits on Oct 4, 2023

  1. Overhaul snippet-insertion.

    Before this, upon expanding a new snippet, its jumps were linked up
    with the currently active node, no matter its position in the buffer.
    The most prominent negative side-effect of this is jumping all over the
    buffer if a snippet is not jumped "through" (ie. to its $0).
    This finally adresses this properly by inserting snippets into nodes
    according to their position in the buffer.
    Read the changes to `DOC.md` for more info.
    
    This commit also deprecates `history` in `setup`, prefer the new options
    `keep_roots`, `link_roots`, and `link_children`, as they are more
    readable. Still, it is very unlikely that compatibility with `history`
    will ever be completely removed, so no need to fret about this.
    L3MON4D3 committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    1da4350 View commit details
    Browse the repository at this point in the history
  2. make jumpable smarter.

    L3MON4D3 committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    6e3ba2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cd1f73 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1d4ea78 View commit details
    Browse the repository at this point in the history
  5. fix extmark-adjustments for nested snippets.

    now parents update children, and children parents.
    L3MON4D3 committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    2bd74f6 View commit details
    Browse the repository at this point in the history
  6. Auto generate docs

    L3MON4D3 authored and github-actions[bot] committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    8b2e296 View commit details
    Browse the repository at this point in the history
  7. Format with stylua

    L3MON4D3 authored and github-actions[bot] committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    3788ef4 View commit details
    Browse the repository at this point in the history