Lewis Russell
ceaa21f625
refactor: improve log messages output
2024-06-18 14:26:29 +01:00
Lewis Russell
f846c50724
fix(watcher): fix debounce
...
Fixes #1046
2024-06-18 10:34:56 +01:00
Lewis Russell
4a143f13e1
chore: add timestamp to debug messages
2024-06-07 13:24:11 +01:00
Lewis Russell
720061aa15
feat(setup)!: make setup() synchronous
...
Previously `setup()` was asynchronous in order to run a system command
to check the git version.
As support for v0.8 is dropped, this is no longer required.
2024-05-28 09:35:46 +01:00
Lewis Russell
cdfcd9d39d
refactor: remove vimfn signs backend
...
Closes #941
2024-05-23 09:39:58 +01:00
Lewis Russell
d9d94e055a
feat!: drop support for nvim v0.8
2024-05-23 09:39:58 +01:00
Lewis Russell
a28bb1db50
fix(update): always get object contents from object names
...
Fixes #847
2024-05-22 16:29:01 +01:00
Lewis Russell
c02516144a
refacto: misc refactoring ( #983 )
2024-04-16 17:27:19 +01:00
Lewis Russell
c097cb2550
fix(stage): staging of files with no nl at eof
...
Previously when diffing two files where one did not have a newline at
the end of the file, gitsigns was unable to stage such differences since
this information was not captured during the diff stage.
If you run `vim.diff('a', 'a\n')` you get the result:
@@ -1 +1 @@
-a
\ No newline at end of file
+a
However if you run `vim.diff('a', 'a\n', {result_type='indices'})` you
get:
{ {1, 1, 1, 1} }
And since Gitsigns tracks changes as a list of text lines, the
information about a missing newline at the end of the file is not
correctly tracked.
The main consequence of this is that staging hunks which contain these
lines would result in an error as the generated patch would not apply
since it was missing "\ No newline at end of file".
To fix this, the internal hunk object now tracks this end of file
information and patches are now generated correctly.
2024-04-10 15:53:16 +01:00
Lewis Russell
ade22fc9b9
chore: format
2024-04-05 14:21:10 +01:00
Lewis Russell
ee5b6ba0b5
fix(nav): followup for #976
2024-04-05 13:52:40 +01:00
Lewis Russell
1389134ba9
fix: trigger GitSignsUpdate autocmd more often
...
Resolves #831 #832
2024-04-04 11:40:34 +01:00
Lewis Russell
2b96835a2b
fix(actions): prev_hunk works with wrap on line 1
...
Fixes #806
2024-04-04 11:00:03 +01:00
Lewis Russell
4db6e85152
chore: stylua
2024-04-03 17:21:49 +01:00
Lewis Russell
096d0833f7
test: migrate to nvim-test
2024-04-03 16:56:07 +01:00
Lewis Russell
955d16e633
test: fix nightly
2024-04-03 15:41:43 +01:00
Lewis Russell
4a1bc2ef16
test: fix nightly
2024-04-03 14:45:10 +01: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
Jongwook Choi
017c924e20
test: use the classic vim colorscheme for nvim nightly
2023-12-10 17:40:37 +00: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
2272cf9f0c
fix: issue #888
...
Fixes #888
2023-10-03 15:49:48 +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
e32efa6d6a
refactor: more test stuff
2023-10-01 17:35:37 +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
0828f7e4a7
test: cleanup setup
2023-09-22 12:40:08 +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
79127db3b1
fix(diff): better handling of final newline
...
Fixes #779
2023-08-25 13:32: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
92654646f8
refactor: post teal-pocolypse cleanup
...
- assume vim.iconv
2023-06-14 12:02:18 +01:00
Lewis Russell
4bbfb06cf7
fix: vendor testsuite
2023-06-13 15:32:14 +01:00
Lewis Russell
f965e3bad0
perf: reduce startup time
2023-03-01 16:34:52 +00:00
Sindre T. Strøm
ec4742a7ee
feat: Enable attach()
to work with any buffer when given context data
...
* feat: Enable `attach()` to work with any buffer when given context data.
* fix(test): Pattern escape file names when matching debug messages.
2023-02-03 09:25:22 +00:00
Lewis Russell
bb808fc737
test: fix CI
2022-12-15 10:40:27 +00:00
Lewis Russell
84e81178fe
fix(follow_files): do not rename if buffer name already exists
...
Fixes #571
2022-11-08 11:34:30 +00:00
Lewis Russell
fa1e8c589a
feat(signs): different add signs for untracked files
...
Resolves #569
2022-11-07 10:40:47 +00:00
Lewis Russell
666edc7ba4
fix(test): set merge.conflictstyle
2022-10-07 14:20:57 +01:00
Lewis Russell
f623543458
chore(ci)!: drop support for v0.6.x
2022-10-07 14:02:11 +01:00
Lewis Russell
a0cd6ccd73
chore!: remove deprecated fields
2022-09-13 09:28:42 +01:00
Lewis Russell
50e32c6309
feat: support for detached working trees
...
Added config.worktrees.
Array of tables with the keys 'gitdir' and 'toplevel'.
If attaching normally fails, then each entry in the table is attempted.
Example:
worktrees = {
{
toplevel = vim.env.HOME,
gitdir = vim.env.HOME .. '/projects/dotfiles/.git'
}
}
Resolves #397
2022-08-10 11:15:42 +01:00
Lewis Russell
44372ff5dc
fix: improve fix for #521
2022-05-24 11:45:33 +01:00
Lewis Russell
13f811e8eb
fix: don't set default for GitSignsDeleteLn
...
Setting GitSignsDeleteLn to anything by default doesn't make much sense
since it ends up highlighting lines not related to the hunk. This is
especially confusing when show_deleted is enabled.
+ Fix incorrect docs.
Fixes #565
2022-05-22 10:15:25 +01:00