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(actions): Automatic inline diff preview on hover #817

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 16, 2023

  1. feat(actions): preview inline diff on hover

    By calling `Gitsigns automatic_hunk_inline` or by enabling
    `Config.automatic_hunk_inline` when the cursor is on an hunk (added,
    modified or removed) `preview_hunk_inline` is called automatically.
    If the cursor moves inside the hunk's bounds the extmark doesn't
    flicker, if it exits the hunk the extmarks are cleared automatically.
    It works via an autocommand triggering on CursorMoved.
    It takes `_inline2` into consideration.
    
    `Config.automatic_hunk_inline` is an option to enable the functionality
    by default on new buffers.
    lnc3l0t committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    63653af View commit details
    Browse the repository at this point in the history