Commit Graph

944 Commits

Author SHA1 Message Date
Lewis Russell
4b53134ce5 fix(watcher): workaround weird annoying libuv bug
Fixes #1027
2024-06-07 07:56:34 +01:00
Lewis Russell
379a5a915a
chore: update bug report template 2024-06-05 14:17:17 +01:00
Lewis Russell
e31d2149d9 fix: add workaround for Lazy issue 2024-06-05 10:17:10 +01:00
Lewis Russell
75dc649106 fix(attach): detach on when the buffer name changes
Fixes #1021
2024-05-29 10:00:48 +01:00
Lewis Russell
af3fdad8dd fix: handle untracked files for custom bases
Fixes #1022
2024-05-28 10:02:32 +01:00
Lewis Russell
c96e3cf476 fix: scheduling in cwd watching 2024-05-28 09:41:58 +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
Josh Pencheon
20f305d63b fix(blame): avoid right-aligned blame overlapping buftext
When the blame text's length exceeds the available space to
the right of the buffer's text, the intention is to switch
to the 'eol' extmark placement. However, there were a number
of issues that could trip up the time at which it swtiches
to 'eol':

- if the buffer line or virtual text contain multibyte characters,
  they weren't counted properly in terms of screen cells that they'd
  consume
- incorrect window identifer was passed when calculating the
  available space, meaning that signs/folds/numbers columns
  weren't properly accounted for
2024-05-23 08:35:41 +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
d6a3bf0b36 ci: add testing for Nvim v0.10.0 2024-05-22 16:26:32 +01:00
Yi Ming
805610a939 fix: wrong api name in stable 2024-05-06 15:57:25 +01:00
Yi Ming
bc933d24a6 fix: use latest api in 0.10 2024-05-04 12:02:45 +01:00
Lewis Russell
9cafac31a0 fix(attach): allow attaching inside .git/
Fixes #923
2024-05-01 10:50:33 +01:00
Lewis Russell
f65d1d8201 fix(util): close file after reading 2024-05-01 10:38:52 +01:00
Lewis Russell
790355f00a build: fix release please 2024-04-30 16:37:10 +01:00
github-actions[bot]
76927d14d3 chore(main): release 0.8.1 2024-04-30 16:34:47 +01:00
Lewis Russell
7aa9a56712 fix(reset): handle 'endofline' when resetting hunks 2024-04-30 16:31:45 +01:00
Yufan You
035da036e6 fix(yadm): correct ls-files check
`not` has higher precedence than `~=`,
so it was actually `(not #git_command(..)) ~= 0`.

To fix it, we can simplify the double negation as just a `==`.
2024-04-20 14:43:56 +01:00
Lewis Russell
7e38f07cab fix(blame): check win is valid after running blame 2024-04-18 10:13:44 +01:00
Lewis Russell
4475b3eed0 ci: fix luarocks version 2024-04-18 09:57:26 +01:00
Lewis Russell
43799bc369 ci: move luarocks upload to release workflow 2024-04-18 09:53:22 +01:00
Lewis Russell
9f8a1ed860 ci: tag release branch on release 2024-04-18 09:49:56 +01:00
Lewis Russell
e788ef7c6d ci: update lua action 2024-04-18 09:40:01 +01:00
github-actions[bot]
52f8da33cc chore(main): release 0.8.0 2024-04-17 17:19:33 +01:00
Lewis Russell
031abb0654 fix: release-please branch 2024-04-17 17:18:01 +01:00
Lewis Russell
f0447b734e ci: release-please 2024-04-17 17:16:07 +01:00
Lewis Russell
36181d6484 ci: adjust release-please config 2024-04-17 14:24:01 +01:00
Lewis Russell
42fda8e935 ci: add release-please config 2024-04-17 14:18:22 +01:00
Lewis Russell
2215c64cf6 ci: add release-please workflow 2024-04-17 14:08:40 +01:00
Lewis Russell
36d961d3d1 fix: #989 2024-04-17 13:46:03 +01:00
dundargoc
cd6c831a3a build: use downloaded lua-language-server
It currently assumes lua-language-server is in PATH, which may not be
true.
2024-04-17 11:04:25 +01:00
Lewis Russell
099784ef4d test: add luals checking 2024-04-17 10:26:47 +01:00
Lewis Russell
05226b4d41 fix: #986 2024-04-17 09:08:29 +01:00
Lewis Russell
c02516144a
refacto: misc refactoring (#983) 2024-04-16 17:27:19 +01:00
Lewis Russell
d96ef3bbff chore: remove selene 2024-04-12 16:53:20 +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
1a50b94066 fix: check bcache in get_hunks
Fixes #979
Closes #981
2024-04-07 09:24:20 +01:00
Lewis Russell
81369ed540 fix: attach to fugitive and gitsigns buffers
Resolved #593
2024-04-05 16:14:48 +01:00
Lewis Russell
320b232fb4 refactor: remove unused field 2024-04-05 15:08:38 +01:00
Lewis Russell
ade22fc9b9 chore: format 2024-04-05 14:21:10 +01:00
Lewis Russell
ec6aab13ef feat(autocmd) add GitSignsChanged
Resolves #507
2024-04-05 14:19:06 +01:00
Lewis Russell
ee5b6ba0b5 fix(nav): followup for #976 2024-04-05 13:52:40 +01:00
Lewis Russell
59bdc1851c feat(nav): add nav_hunk()
- Deprecated `next_hunk()` and `prev_hunk()`.
- Can now navigate to the first/last hunk using `nav_hunk('first'|'last')`.
- Added `count` to navigation options. Defaults to `v:count1`.
- Updated recommended keymaps for navigation.
- Navigation actions now navigate to the first non-blank column.
2024-04-05 13:35:49 +01:00
Lewis Russell
c0936237f2 fix: check for WinResized 2024-04-05 13:09:45 +01:00
Lewis Russell
5f267aa2fe fix(blame): put ignore-revs-file in correct position
Fixes #975
2024-04-05 09:55:16 +01:00
Lewis Russell
fa052c20aa chore: format 2024-04-04 14:56:32 +01:00
Lewis Russell
f0733b793a fix(current_line_blame): update on WinResized
Fixes #966
2024-04-04 14:54:44 +01:00
Lewis Russell
826ad69429 fix: do not error when cwd does not exist 2024-04-04 14:49:31 +01:00