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
Lewis Russell
61e50f37ec
chore: add better assertion message
2023-07-27 14:03:56 +01:00
Lewis Russell
11b80e7eea
feat(config): lazy resolve config default values
2023-07-25 13:11:18 +01:00
Lewis Russell
fd0b759aef
fix: improve typing
2023-07-25 11:02:51 +01:00
Rocky Zhang
adcf2c7f2f
fix: missing bottom border
...
Fixes: https://github.com/lewis6991/gitsigns.nvim/issues/841
2023-07-18 17:59:09 +01:00
Shaopeng Dai
1e01b2958a
fix: no commit message
2023-07-17 08:38:25 +01:00
Lewis Russell
5a04466685
docs: update CONTRIBUTING.md
2023-07-13 10:14:08 +01:00
Lewis Russell
a7e99027f5
feat: add .luarc.json
2023-07-13 10:08:16 +01:00
Lewis Russell
48c3ae8ec7
chore: formatting (3)
2023-07-10 14:12:20 +01:00
Lewis Russell
7b1a1d5591
chore: formatting (2)
2023-07-10 14:11:25 +01:00
Lewis Russell
b7f6c52db5
chore: formatting
2023-07-10 14:10:04 +01:00
Lewis Russell
fd4d953614
docs: make gen_help.lua emmy aware
2023-07-10 13:52:01 +01:00
Lewis Russell
0daf763ed7
chore: run through stylua
2023-07-10 11:17:40 +01:00
Lewis Russell
76a013dc3d
refactor: move gitdir watcher to separate module
2023-07-10 11:14:47 +01:00
Lewis Russell
dc2962f7fc
fix(blame): don't run concurrent blames
...
Fixes : #783
2023-07-04 11:53:50 +01:00
Lewis Russell
a36bc3360d
fix(inline_preview2): further maturity
2023-06-20 13:39:16 +01:00
Lewis Russell
3ef12dfdc2
chore(gitignore): add .luarocks
2023-06-19 14:43:37 +01:00
Lewis Russell
3a6f1e296d
docs: update
2023-06-19 13:22:31 +01:00
Lewis Russell
b0f0612611
fix(watcher): debounce per watcher
2023-06-19 13:00:03 +01:00
Lewis Russell
a56fb7cc42
refactor(tests): tidy up
2023-06-19 12:46:25 +01:00
Lewis Russell
f1378831b1
feat(watcher): move from libuv poll to file event watcher
2023-06-19 11:22:33 +01:00
Lewis Russell
256569c2fe
feat!: remove config.keymaps
2023-06-16 16:57:41 +01:00
Lewis Russell
512ed64996
feat: enable threaded diff by default
2023-06-16 16:34:28 +01:00
Lewis Russell
6f97c573b5
chore: more emmy types
2023-06-16 16:31:27 +01:00