Commit Graph

637 Commits

Author SHA1 Message Date
Lewis Russell 50577f0186 fix(diffthis): populate b:gitsigns_head
Fixes #949
2024-04-03 11:44:05 +01:00
Lewis Russell 690f298c4c fix: followup 2024-04-03 11:38:11 +01:00
Lewis Russell 4e90cf984c feat(actions): add callback to async actions
- simplify async code

Fixes: #906, #766
2024-04-03 11:30:19 +01:00
Lewis Russell a4db718c78 fix: bad deprecation message
Fixes #965
2024-04-02 09:32:53 +01:00
Lewis Russell 1bb277b41d feat(yadm): deprecate 2024-04-01 18:18:11 +01:00
Lewis Russell 3cb0f8431f fix(version): handle version checks more gracefully
- Avoid emitting errors when the version check fails.
- Put version checking into separate module.
- Pull in upstream changes for vim.system.

Fixes: #948
Closes: #960
2024-04-01 18:00:29 +01:00
Lewis Russell 70584ff9aa fix(blame): check buffer still exists after loading
Fixes #946
2024-03-29 08:54:05 +00:00
Ivan Pankratov 078041e9d0 fix(watcher): improve buffer check in handler 2024-03-17 20:37:59 +00:00
Lewis Russell 4e348641b8 fix(git): support older versions of git 2024-03-13 15:14:48 +00:00
Timur Celik 41dc075ef6 fix: changedelete symbol with linematch enabled
Since linematch will report a changed line following deleted lines as
multiple hunks on a single line, it will only show the `changed` sign
and will drop the `deleted` sign.  To fix this check for overlapping
hunks and mark the change hunk as changedelete.
2024-03-12 09:32:02 +00:00
Lewis Russell fb9fd53124 fix(hl): highlights for Nvim v0.9
Resolves #939
2024-01-26 15:21:23 +00:00
Lewis Russell 590d077c55 feat!: change default of attached_to_untracked to false 2024-01-25 16:48:27 +00:00
Sebastian Lyng Johansen 300a306da9 fix: use documented highlight groups as fallback 2024-01-23 19:18:12 +00:00
martinra 3e6e91b09f
feat: configurable auto attach (#918)
* feat: configurable auto attach

* fixup! feat: configurable auto attach
2024-01-05 11:42:32 +00:00
Lewis Russell d195f0c35c feat: enable the new version of inline_preview 2023-12-12 10:56:25 +00:00
Lewis Russell e20c96e9c3 fix(setqflist): CLI
Fixes #907
2023-12-12 10:54:43 +00:00
Lewis Russell aeab36f4b5 fix(dos): correct check for dos files
When scanning for CRLF do not check EOF.

Fixes #927, #835
2023-12-12 10:47:23 +00:00
Jongwook Choi 6e05045fb1 fix(manager): manager.update() never resolve when buf_check() fails
Problem: If `buf_check(...)` fails (mostly when cache is outdated), it
would abort updating gitsigns, but this actually leads to the coroutine
never resolving and stuck forever. It is because the asynchronous
callback `cb()` is never called.

As a result, gitsigns might be stuck forever and fail to update silently
(see #924), and manual reattach or refresh also doesn't work, because of
the unresolved coroutine that is recognized to be "still running", i.e.,
any subsequent calls to "throttled" `manager.update()` will not be
executed.

Solution: Make `buf_check()` always yield a value (true/false) to ensure
that `manager.update()` will resolve and finish its execution after all.
2023-12-10 22:28:54 +00:00
Lewis Russell 6ef8c54fb5 fix(preview): handle staged hunks 2023-11-29 12:07:41 +00:00
Dema 175e74f87d fix: prevent gitsigns from calling diffthis on fugitive status window 2023-11-28 08:32:47 +00:00
Lewis Russell 5fc573f2d2 feat: interleave attaches on startup 2023-11-23 10:54:06 +00:00
Maurice Wangleng Tan 59bd933faa fix: gitsigns not attached due to async not returning 2023-11-23 09:33:51 +00:00
Theo Fabi 0ccd5fb231 fix(cli): return silently if `ui.select` cancelled 2023-11-17 21:42:34 +00:00
Lewis Russell 37d26d718f fix(async): return correct values 2023-11-16 15:41:36 +00:00
Lewis Russell 30541b73e9 refactor: popup 2023-11-16 15:29:25 +00:00
Lewis Russell fbc42056b4 feat: enable extmark signs by default 2023-10-05 16:25:10 +01:00
Lewis Russell d05a21795c chore: tidying 2023-10-05 14:14:33 +01:00
Lewis Russell 287f937015 refactor: rename variable 2023-10-05 10:41:30 +01:00
Lewis Russell 73a95e68f1 fix: refresh on set bomb/eol 2023-10-05 10:37:34 +01:00
Lewis Russell 7f6f1565ac refactor(preview): simplify linespec code 2023-10-04 14:45:59 +01:00
Lewis Russell 795e0bda58 fix(current_line_blame): fix window target 2023-10-04 14:08:20 +01:00
Lewis Russell 2272cf9f0c fix: issue #888
Fixes #888
2023-10-03 15:49:48 +01:00
Lewis Russell b14b9fba7d fix(blame): add line threshold for large files
Fixes #891
2023-10-02 16:20:37 +01:00
Lewis Russell 550e251986 fix: FILE with untracked 2023-10-02 15:10:39 +01:00
Lewis Russell 61e0130d4b fix(actions): set less lines when reseting hunks
Fixes #637
2023-10-02 13:02:37 +01:00
Lewis Russell 609fffa462 fix(git): respect env vars
Fixes #895
2023-10-02 12:20:57 +01:00
Lewis Russell 317c98d64c feat(diff): allow to diff against the working version
The `base` can now be set to `FILE` to diff against the working version.

Resolves #164
2023-10-02 12:14:20 +01:00
Lewis Russell 8aedc8b15a feat(diffopt): add support for whitespace flags in diffopt
Resolves #696
2023-10-02 11:22:42 +01:00
Lewis Russell 19654d963e refactor: vendor vim.system 2023-10-01 16:54:55 +01:00
Lewis Russell bdeba1cec3 perf(blame): better cache invalidation
The blame cache is now maintained in the CacheEntry object
and invalidated incrementally on buffer updates.

In addition git-blame is bypassed if the cursor line is within a hunk.
2023-09-24 17:01:12 +01:00
Lewis Russell 9bec6e1ef5 fix(blame): convert CRLF to LF in commit info 2023-09-23 15:46:43 +01:00
Lewis Russell 04098791d2 fix(blame): mistakes in blame parsing 2023-09-23 15:34:03 +01:00
Lewis Russell dfac1062e4 fix: better bom handling 2023-09-23 15:18:14 +01:00
Lewis Russell ac922e1785 fix(dos): remove incorrect CR
Fixes #875
2023-09-23 15:18:14 +01:00
Lewis Russell 664da1fcf3 fix: inline2 fixes 2023-09-23 15:18:14 +01:00
AThePeanut4 ecc857f73b fix(cli): named args not working 2023-09-23 15:18:03 +01:00
Lewis Russell e308a4f5dd build: add doc and lint check 2023-09-23 11:13:14 +01:00
Lewis Russell bd0f4d518d fix: stylua 2023-09-23 10:13:35 +01:00
Lewis Russell f0e9f5dd32 fix(blame): better error message when blame fails
Closes #776
2023-09-22 16:29:34 +01:00
Lewis Russell e2b8e61ce0 fix(blame): trim virt_text when using right_align
Fixes #870
2023-09-22 16:01:54 +01:00