Commit Graph

959 Commits

Author SHA1 Message Date
Artem Vasenin 1ef74b5467 docs: update docs 2024-09-04 13:41:33 +01:00
Artem Vasenin 2667904fb0 feat(blame_line): add option to show when not focused 2024-09-04 13:41:33 +01:00
Lewis Russell 899e993850 feat: detect repo errors 2024-08-28 10:09:32 +01:00
iofq 80214a857c fix: sort get_nav_hunks to handle mixed hunk states 2024-08-25 20:18:18 +01:00
Lewis Russell 562dc47189 feat(async): add async.pcall 2024-08-07 12:16:17 +01:00
Lewis Russell e6e3c3a139 feat: add staging and update locks 2024-08-07 10:50:35 +01:00
xzb 58bd9e98d8 fix: setqflist("all") should respect change_base
pass config.base as parameter to files_changed

check if base = ":0"
2024-08-04 18:44:46 +01:00
Yi Ming 564849a17b fix(blame): restore original options when blame window is closed 2024-08-03 21:51:56 +01:00
Contsantine Bulany 0ed466953f fix(blame)!: replace dot with dash in blame file type name 2024-08-02 09:26:27 +01:00
Lewis Russell f074844b60 feat: add submodule support for gitsigns urls
Fixes #1095
2024-07-25 14:41:16 +01:00
Lewis Russell 6f8dbdbd41 fix: typo on dprint 2024-07-25 11:24:49 +01:00
Lewis Russell 1c128d4585 fix: wait for buffer to attach in M.show
Fixes #1091
2024-07-25 10:50:41 +01:00
Dennis B 1d2cb568a7 fix: derive Staged*Cul highlight correctly
The GitSignsStagedTopdeleteCul highlight (especially the foreground) was
very hard to read. It seems the issue was that
GitSignsStagedTopdeleteCul incorrectly derived from
GitSignsStagedChangeCul instead of the expected GitSignsChangedeleteCul.

So I think the fg_factor ended up being 0.5 of 0.5 equals .25,
foreground extremely dim.

Likely just a simply cut-and-paste oversight.

With this change the dim problem goes away.
2024-07-25 07:36:17 +01:00
Anton Rybianov b29cb58126 feat: add highlights for the current line 2024-07-24 09:07:10 +01:00
Lewis Russell f4928ba14e feat(blame): add reblame at commit parent 2024-07-16 16:05:23 +01:00
MithicSpirit 2a7b39f4d2 fix: help triggering text autocmds
The default filetype detection algorithm only checks the last lines of
.txt files for "ft=help" before setting the filetype to "text". Since
there was an empty line at the end, the help page was getting marked as
having filetype text first, and then help, which meant both autocmds
were triggered. This fixes that by removing the extraneous newline; note
that there is still a newline at the end of file, as is customary, and
this just removes the second, unnecessary newline.

Furthermore, this simplifies the logic for "gen_help.lua" and increases
its robustness by using the "io.lines" function rather than reading the
entire file as a string and using regular expressions to split it into
lines.
2024-07-16 06:55:15 +01:00
Lewis Russell d9f997dba7 fix: add cli binding for show 2024-07-15 17:10:49 +01:00
Lewis Russell e9c4187c37 fix(blame): handle incremental output with a buffered reader
Fixes #1084
2024-07-12 14:57:33 +01:00
Lewis Russell e784e5a078 fix: nil check for repo info
Fixes #1085 #1086
2024-07-12 09:24:44 +01:00
Lewis Russell 7178d1a430 fix: add nil check 2024-07-11 11:04:20 +01:00
Lewis Russell 375c44bdfd fix: nil check for repo cache 2024-07-09 15:50:08 +01:00
Lewis Russell 2593efa3c5 feat: share Repo objects across buffers 2024-07-09 15:41:56 +01:00
Lewis Russell 220446c8c8 refactor: break up git.lua 2024-07-07 17:58:24 +01:00
belltoy aa12bb9cd2 fix(blame): render blame end_col out of range 2024-07-07 14:43:03 +01:00
Lewis Russell 39b5b6f48b fix: lint 2024-07-03 13:51:28 +01:00
Lewis Russell 82bc6225e9 refactor: organize imports 2024-07-03 12:08:06 +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
Daniel Ebrahimian d44a7948ff fix(docs): Add signs_staged to default config in README
Update doc file
2024-07-03 10:47:57 +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
icefed 6b1a14eabc fix(blame): show current buffer line blame immediately
fix a problem caused by commit: 8df63f2ddc
2024-06-28 15:09:48 +01:00
Lewis Russell 0595724fa9 fix(blame): parse blame info correctly
Fixes #1065
2024-06-27 10:01:23 +01:00
Lewis Russell 0e39e9afcf fix: toggle_current_line_blame
Fixes #1072
2024-06-27 09:53:37 +01:00
Lewis Russell fa42613096 feat(config): improve deprecation message
There are Neovim users who don't know how to configure highlights.
Adjust the deprecation message to include an example of how to set a
highlight.
2024-06-25 12:00:09 +01:00
Artyom Andreev d0db8ef6a0 fix(blame): respect original blame winbar 2024-06-25 09:25:20 +01:00
Yi Ming 17e8fd6618 fix(blame): show the winbar if the main window has it enabled 2024-06-24 19:10:51 +01:00
Lewis Russell 8df63f2ddc fix(blame): update current_line_blame when attaching 2024-06-21 15:21:24 +01:00
Lewis Russell d03a1c9a10 fix(blame): include error message in error 2024-06-21 15:04:28 +01:00
Lewis Russell e4efe9b99b feat: set bufname for commit buffers 2024-06-21 13:24:22 +01:00
Lewis Russell 93c38d9726 fix(blame): popupmenu error
Fixes #1061
2024-06-21 12:57:27 +01:00
Lewis Russell 0dc886637f feat(blame): set filetype to gitsigns.blame
Resolves #1049
2024-06-20 15:10:25 +01:00
Lewis Russell 9ca00df1c8 feat(blame): run formatter with pcall
If it fails, use the default format.
2024-06-20 15:00:12 +01:00
Lewis Russell 0349546134 fix(blame): track buffers changes correctly in the cache 2024-06-20 13:58:35 +01:00
Lewis Russell bcae8395fb refactor(blame): improve color calc 2024-06-20 12:27:29 +01:00
Lewis Russell 9cdfcb5f03 perf(blame): some improvements
- Ensure ':Gitsigns blame' utilizes the blame cache.
- Rewrite the blame runner to process output incrementally.
- Make the blame cache more efficient.
- Move the blame processing code to a separate module.
2024-06-20 12:26:55 +01:00
Ben Elan 89a4dce7c9
fix(attach): resolve error viewing fugitive trees (#1058) 2024-06-20 08:54:06 +01:00
Lewis Russell 651d5ed082 refactor: simplify deprecated config handling 2024-06-19 14:58:49 +01:00
Lewis Russell 92a8fbb845 feat!: remove current_line_blame_formatter_opts
- Also make relative time the default time format for current_line_blame_formatter
- When `current_line_blame_formatter` is passed as a function it is no
  longer passed an opts argument.
2024-06-19 14:51:26 +01:00
Lewis Russell 61f5b64076 feat!: remove support for yadm 2024-06-19 14:37:25 +01:00
Lewis Russell 3d7e49c201 feat(config)!: deprecate highlight groups in config.signs
These fields haven't been documented for some time, so now hard
deprecate them.
2024-06-19 14:33:10 +01:00