Commit Graph

782 Commits

Author SHA1 Message Date
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
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 7de01258ca chore: ignore stylua 2023-09-23 11:14:20 +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 176ff6a833 docs: update CONTRIBUTING.md 2023-09-23 10:10:16 +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
Lewis Russell 94656269a3 fix(actions): CLI for setloclist and setqflist
Fixes #880
2023-09-22 12:40:08 +01:00
Lewis Russell 0828f7e4a7 test: cleanup setup 2023-09-22 12:40:08 +01:00
Lewis Russell b018a2b139 perf(blame): run blame for entire file instead of per line
Previously current_line_blame would run a git-blame process per line
(via the `-L` flag) in an attempt to be more efficient. However after
some investigation it seems that running git-blame for the entire file
rarely exceeds 2x the time it takes to run for a single line, even for
large files.

This change alters current_line_blame to run git-blame for the entire
file after each buffer edit and caches that in memory. This makes the
first git-blame after an edit ~2x slower, but makes any cursor movements
after that instant.

A follow-up to this would be for current_line_blame to track buffer
updates to avoid the cache needing to be invalidated on every edit.
2023-09-22 12:24:42 +01:00
Lewis Russell c4c5f7907c fix(blame): do not run concurrent processes
Fixes #877
2023-09-22 12:24:42 +01:00
Lewis Russell cdf724f885 test: nvim 0.10 change for decor provider win range 2023-09-22 12:24:42 +01:00
Lewis Russell c7d963b257 docs: annotate codeblocks with lang 2023-09-22 12:24:42 +01:00
Marcus Caisey bce4576a90 fix(setqflist): don't strip trailing newline from working tree state 2023-09-17 21:51:38 +01:00
Patrick Klitzke 907ae86360 fix: update signature of setup to not allow require an argument 2023-09-12 09:30:37 +01:00
Lewis Russell fef5d90953 fix: handle when cache is invalidated during updates
Fixes: #873
2023-09-08 16:28:56 +01:00
Lewis Russell 983f1a216c fix: typing 2023-09-07 10:36:44 +01:00
Lewis Russell 3885901f24 fix(attach): check cache status between async calls 2023-09-07 10:30:14 +01:00
Lewis Russell bf6b0bbc52 fix: typing 2023-09-06 11:24:39 +01:00
luokai d927caa075 fix(blame): If it has been detached, the cache[bufnr] is nil 2023-09-02 07:25:39 +01:00
Lewis Russell 44adf808ac fix(actions.show): check buffer is attached
Fixes #865
2023-08-31 09:33:46 +01:00
Lewis Russell d8b52fc95e fix(watcher): check for detached buffers
Fixes: #848
2023-08-30 10:48:48 +01:00
Lewis Russell d859028841 fix(reset_buffer): do not insert extra newline 2023-08-26 22:57:28 +01:00
Lewis Russell 79127db3b1 fix(diff): better handling of final newline
Fixes #779
2023-08-25 13:32:03 +01:00
Lewis Russell 3d357b2607 fix(cli): do not print result of toggle functions
Fixes: #845
2023-08-25 11:20:46 +01:00
Lewis Russell 2e23db475c ci: stale action fixup 2023-08-25 11:02:50 +01:00
Lewis Russell c083c43793 ci: add response action 2023-08-25 10:44:56 +01:00
Ryan Rawlings 749267aaa8 fix: change awrap to wrap in diffthis.lua 2023-08-19 07:13:43 +01:00
Lewis Russell 5a2b120584 fix: check valid buffer when scheduling 2023-08-17 11:40:27 +01:00
Lewis Russell 55f8fc7b13 fix: typing 2023-08-15 13:28:36 +01:00
Lewis Russell 4b3165b5f7 chore: update .luarc.json 2023-08-15 09:22:24 +01:00
Toby Hutton bae45ef449
fix: accommodate watcher receiving a nil filename. (#851)
* fix: accommodate watcher receiving a nil filename.

* fix: add a comment for the watcher callback nil filename check.
2023-08-09 09:08:20 +01:00
Lewis Russell 287fffb410
docs: remove null-ls doc 2023-08-08 09:45:18 +01:00
Yuta Katayama 3117849655 fix: git rc release version causes assertion error 2023-08-06 09:14:46 +01:00
Lewis Russell 5d73da785a fix: assertion message 2023-07-27 14:05:20 +01:00