Lewis Russell
2d2156a2f8
feat(signs): improve sign generation from hunks
...
CI / commit_lint (push) Waiting to run
CI / test (nightly) (push) Waiting to run
CI / test (v0.10.0) (push) Waiting to run
CI / test (v0.9.5) (push) Waiting to run
CI / stylua (push) Waiting to run
CI / luals (push) Waiting to run
CI / doc (push) Waiting to run
release-please / luarocks-upload (push) Blocked by required conditions
release-please / release-please (push) Waiting to run
release-please / update-doc (push) Blocked by required conditions
Experimental. Opt-in with hidden option _new_sign_calc = true
2025-01-23 15:55:36 +00:00
Lewis Russell
f10fddafe0
fix: more EOL fixes
...
- When staging files, convert the text into a string before passing to
system() to ensure EOL is respected.
- When setting lines. If text doesn't end with an empty line then set
'eol=false'.
Fixes #1145
2025-01-20 12:27:57 +00:00
Lewis Russell
904108425c
refactor: formatting
2025-01-09 09:15:26 +00:00
Lewis Russell
2eaa305373
ci: resolve failures
CI / doc (push) Waiting to run
CI / commit_lint (push) Waiting to run
CI / test (nightly) (push) Waiting to run
CI / test (v0.10.0) (push) Waiting to run
CI / test (v0.9.5) (push) Waiting to run
CI / lint (push) Waiting to run
release-please / release-please (push) Waiting to run
release-please / luarocks-upload (push) Blocked by required conditions
release-please / update-doc (push) Blocked by required conditions
2025-01-08 14:08:46 +00:00
Lewis Russell
2593efa3c5
feat: share Repo objects across buffers
2024-07-09 15:41:56 +01:00
Lewis Russell
11cb53391b
refactor(git): remove some code
2024-07-03 11:50:20 +01:00
Lewis Russell
2e5719c79a
fix: get the repo version of the username
2024-07-03 11:50:20 +01:00
Lewis Russell
5840f89c50
fix(watcher): do not ignore any updates
...
Now the watcher handlers is debounced and throttled, the ignore list
is no longer necessary.
This avoids an issue where we sometimes trigger the handler too early
(as other files are still changing). Now the debounce and throttle logic
and take into account every single file change.
2024-07-03 10:47:34 +01:00
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