Commit Graph

559 Commits

Author SHA1 Message Date
Lewis Russell
38f56c846d feat(diffthis): respect 'splitright'
For #585
2022-06-20 10:14:24 +01:00
Lewis Russell
5ce7db00d4 fix: nil check 2022-06-17 21:54:15 +01:00
Lewis Russell
329539e061 fix(windows): convert paths with cygpath
Fixes #580
2022-06-17 09:35:13 +01:00
Joshua Rubin
c18e016864 feat(diffthis): retain cursor position from source window
Signed-off-by: Joshua Rubin <me@jawa.dev>
2022-06-09 23:22:42 +01:00
Lewis Russell
27aeb2e715 fix(blame): don't lag on folded lines 2022-05-26 12:55:53 +01:00
Lewis Russell
3b2e7b668c feat: add show action
Similar to diffthis, except diff mode is not enabled.
2022-05-26 11:44:35 +01:00
Lewis Russell
44372ff5dc fix: improve fix for #521 2022-05-24 11:45:33 +01:00
Lewis Russell
23779622ba refactor: tidy up sign api 2022-05-23 12:15:32 +01:00
Lewis Russell
ada01db9dd fix: add missing arg to reschedule updates 2022-05-22 15:04:12 +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
Lewis Russell
32763586ab fix: off by 1 error 2022-05-21 09:33:58 +01:00
Lewis Russell
e0d1b1a676 fix(show_deleted): don't crash on top line 2022-05-20 16:18:41 +01:00
Rafael Madriz
ffd06e36f6
doc: telescope no longer supports lsp_code_actions
Telescope removed support for `code_actions`.
See: `help telescope.changelog-1866`

Ref: https://github.com/nvim-telescope/telescope.nvim/pull/1866

Co-authored-by: Lewis Russell <lewis6991@gmail.com>
2022-05-12 11:40:42 +01:00
Lewis Russell
aca84fd16c feat(diffthis): be graceful with bad revisions 2022-05-10 10:29:25 +01:00
Lewis Russell
0f6599720d fix(get_hunks): respect bufnr argument 2022-05-09 23:35:27 +01:00
Lewis Russell
0beb194164 fix: just another nil error 2022-05-05 13:17:41 +01:00
Lewis Russell
ef153188e8 doc: fix indent_heuristic type
Closes: #509
2022-05-02 14:56:01 +01:00
Lewis Russell
9b3100eaea fix(preview): #554 2022-05-02 14:46:25 +01:00
Lewis Russell
b290aed76f refactor: move unit tests 2022-05-02 14:42:15 +01:00
Lewis Russell
329ffe6820 feat(command): implement argparser 2022-05-02 14:16:18 +01:00
Lewis Russell
61c8398b0d test: improve unit tests 2022-05-02 12:23:51 +01:00
Lewis Russell
b800663f45 fix(preview): handle % chars properly
Fixes #548
2022-04-29 09:06:48 +01:00
Lewis Russell
5f1f0c9afd fix: be more graceful with binary files
Diffs will still be wrong as we can't detect if the file is binary or
not without using .gitattributes

Fixes: #549
2022-04-27 14:18:58 +01:00
Lewis Russell
d6ac4ad416 refactor: removed unused code 2022-04-26 16:33:51 +01:00
Lewis Russell
9b34926dfb refactor: simplify hunk type 2022-04-26 12:08:32 +01:00
Lewis Russell
3461ffa73a fix: bad sign calculation
Fixes #544
2022-04-25 14:37:39 +01:00
Lewis Russell
ead0d48df8 fix: commands for 0.6 2022-04-22 16:33:43 +01:00
Lewis Russell
ec81dcc0a8 chore: formatting 2022-04-22 15:53:20 +01:00
Lewis Russell
e4c421a992 fix: add missing scheduler 2022-04-22 15:06:14 +01:00
Lewis Russell
2b7e2f4426 refactor: compat module for user commands 2022-04-22 15:02:44 +01:00
Lewis Russell
47c750f0da refactor: move more stuff into manager.tl 2022-04-22 14:59:31 +01:00
Lewis Russell
f2243468ee refactor: call word_diff in on_line (again)
This prevents running word diff on folded lines.
2022-04-22 12:40:52 +01:00
Lewis Russell
9b3899a610 refactor(signs): simplify interface 2022-04-22 12:32:18 +01:00
Lewis Russell
f83a2e11cd refactor: cache invalidation 2022-04-20 17:45:54 +01:00
Lewis Russell
498abfa13d refactor: OOP signs 2022-04-19 16:25:32 +01:00
Lewis Russell
6527d8c847 fix(watcher): debounce
vim-grepper likes changing cwd a lot

Fixes #536
2022-04-19 12:12:48 +01:00
Lewis Russell
565b94d79c chore: remove unused cache field 2022-04-18 15:26:16 +01:00
Lewis Russell
1bff8d610f fix(preview): highlight hunk
Fixes #534
2022-04-18 13:06:33 +01:00
Lewis Russell
cd1c11cf09 feat: detect changes of g:gitsigns_head
Resolves #488
2022-04-18 11:11:25 +01:00
Lewis Russell
eb7d40f683 chore: refactor 2022-04-17 20:36:30 +01:00
Lewis Russell
5168115983 fix(diffthis): add missing scheduler call 2022-04-17 18:33:28 +01:00
Lewis Russell
17349fb4a2 refactor: use throttle function for attach 2022-04-17 18:33:02 +01:00
Lewis Russell
0c7da98aab refactor(preview): use format string for windows 2022-04-17 12:59:58 +01:00
Lewis Russell
9e0cc25cbe fix: use iconv for non-utf-8 encodings
Neovim appears to be built with iconv. We can access this to convert
non-utf-8 command outputs (e.g. from 'git show <file>').

Fixes #522
2022-04-15 21:23:20 +01:00
Lewis Russell
e899189c36 feat(blame): autodetect .git-blame-ignore-revs
Git blame has a --ignore-revs-file option for specifying a list of SHA's
to exclude. The common convention (according to a quick Google) is to
call this file .git-blame-ignore-revs. Gitsigns will now look for this
file at the top level of the repo and use it if found.

Resolves #459
2022-04-15 17:13:01 +01:00
Lewis Russell
318a93bc92 doc: update 2022-04-15 17:03:36 +01:00
Lewis Russell
64ecd6d8d1 chore(ci): add Neovim 0.7 to build matrix 2022-04-15 16:54:29 +01:00
Lewis Russell
683c0b4ceb chore(ci): add conventional commits action 2022-04-15 16:49:02 +01:00
Lewis Russell
d0b42c0fc7 fix(git): add --literal-pathspecs 2022-04-15 16:45:16 +01:00
D065023
5a33f70af6 change to other character 2022-04-15 16:28:21 +01:00