Commit Graph

821 Commits

Author SHA1 Message Date
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
hankertrix 2c2463dbd8 fix(docs)!: Use the new attached_to_untracked setting 2024-01-27 16:20:32 +00:00
Lewis Russell fb9fd53124 fix(hl): highlights for Nvim v0.9
Resolves #939
2024-01-26 15:21:23 +00:00
Lewis Russell 0a2a93f687 test: simplify msgpack_rpc_stream 2024-01-25 17:19:25 +00:00
Lewis Russell 47a1e8fd09 test: fix type annotations 2024-01-25 17:12:09 +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
Jose Pedro Oliveira c5ff7628e1 fix: update lua-guide link in README
The previous link was pointing to the nvim-lua-guide project that has been
archived in December 2022.
2024-01-20 16:23:18 +00:00
ehrenschwan 4aaacbf5e5 fix: typo in README 2024-01-12 12:49:22 +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
Jongwook Choi 017c924e20 test: use the classic vim colorscheme for nvim nightly 2023-12-10 17:40:37 +00:00
Lewis Russell 87640f5a87
Update README.md 2023-12-08 16:32:24 +00:00
Lewis Russell e93a158b87 feat: update issue templates 2023-12-07 11:15:45 +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
rafascar af0f583cd3 fix(README): add default config.current_line_blame_opts.virt_text_priority 2023-10-26 12:06:58 +01:00
Apinant.u 5a9a6ac29a fix(README): correct default value Lspsaga integration. 2023-10-17 13:41:51 +01:00
Lewis Russell ff01d34daa test: more tidying 2023-10-06 09:04:46 +01:00
Lewis Russell 2929386210 chore: stylua test code 2023-10-05 16:25:10 +01: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 e32efa6d6a refactor: more test stuff 2023-10-01 17:35:37 +01:00
Lewis Russell 19654d963e refactor: vendor vim.system 2023-10-01 16:54:55 +01:00
Lewis Russell badaef04f8 test: refactor 2023-10-01 16:43:30 +01:00
Lewis Russell 88be2b44d6 test: reduce delays 2023-10-01 16:43:30 +01:00
Lewis Russell e2ca739be7 test: speed up some tests 2023-10-01 11:47:47 +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