Lewis Russell
cc4ee8398e
Fix trying to preview a hunk when there isn't one
2020-11-30 15:18:49 +00:00
Lewis Russell
33995b41d3
Update issue templates
2020-11-29 17:50:04 +00:00
Lewis Russell
20e6bff892
Update README.md
2020-11-24 21:48:41 +00:00
Lewis Russell
8e65ececae
Add CI badge to README
2020-11-24 21:33:33 +00:00
Lewis Russell
72c402fe90
CI config
2020-11-24 21:02:32 +00:00
Lewis Russell
01efbbb61c
Create ci.yml
2020-11-24 20:02:57 +00:00
Lewis Russell
d971e3333c
Add testing framework and tests
...
Resolves #16
2020-11-23 22:46:07 +00:00
Lewis Russell
7da9310a88
Add validation of objects + refactoring
...
- Add validation checking of tables, only enabled when debug_mode=true
- Renamed all refs of diff[s] to hunk[s]
- Move all hunk functions into separate module
2020-11-19 18:43:01 +00:00
Lewis Russell
4578ae072d
Tweak stdout handling of some jobs
2020-11-19 16:07:19 +00:00
Lewis Russell
58215b9f9b
Rework configuration
...
- Use a jsonschema like object to process/validate/build the config
- Attempt to clean up the imports
2020-11-19 16:07:19 +00:00
Lewis Russell
c845f02969
Indicate count in sign
...
Resolves #12
2020-11-18 12:53:03 +00:00
Tobias Florek
7a0154ed6a
add missing , in setup example
2020-11-18 12:52:32 +00:00
Lewis Russell
95ade388ec
Remove plenary issue workaround
2020-11-17 09:56:48 +00:00
Lewis Russell
2dd4f3c8eb
Allow custom formatters for b:gitsigns_status
...
Resolves #15
2020-11-16 23:12:45 +00:00
Lewis Russell
a66043e4f5
Add b:gitsigns_head
...
Fixes #13
2020-11-16 22:53:48 +00:00
Senghan Bright
8c359a339e
fix: ignore directory listings.
2020-11-16 08:58:44 +00:00
Lewis Russell
6c40edf979
Workaround plenary issue
...
Handle stdin pipe manually and make sure it is closed after all data as
been written.
Fixes #9
2020-11-15 16:41:12 +00:00
Lewis Russell
8689424e40
Add vim help doc
2020-11-14 19:24:18 +00:00
Lewis Russell
cb308451d3
Remove packer.nvim issue workaround
2020-11-13 11:46:00 +00:00
Lewis Russell
5a127a366d
Fix nil cfg
...
Fixes #7
2020-11-12 20:40:58 +00:00
Lewis Russell
279d4964a1
Allow default keymaps to be disabled
...
.. by setting keymaps to {}
fixes #5
2020-11-12 12:38:27 +00:00
Lewis Russell
1a711a949b
Adjust installation instructions for packer
...
.. to account for https://github.com/wbthomason/packer.nvim/issues/86
Fixes #6
2020-11-12 12:32:51 +00:00
Lewis Russell
fd4a16253c
Add ability to preview hunks in a floating window
2020-11-12 12:26:49 +00:00
Lewis Russell
eff38adedc
Rework how keymaps are applied
...
- Mappings can now be global or buffer only. If buffer only then they are
setup when gitsigns attaches to the buffer.
- Make all mappings buffer mappings.
- Change default mapping of [c and ]c to take into account if diff mode
is active.
Fixes #4
2020-11-09 17:10:24 +00:00
Lewis Russell
af36220cb4
Avoid error in nav_hunk
...
If gitsigns hasn't attached to buffer make nav_hunk silently return.
2020-11-09 16:59:46 +00:00
Lewis Russell
3c54f80ead
Change default topdelete symbol to upperscore
2020-11-09 16:58:28 +00:00
Lewis Russell
55e5445b54
Make sure git-dir is absolute
2020-11-05 17:19:02 +00:00
Lewis Russell
c0e0c72d0d
Add demo GIF to readme
...
Also update section headers
2020-11-03 22:22:59 +00:00
Lewis Russell
dd984ab091
Fix typo
2020-11-03 14:04:44 +00:00
Lewis Russell
0629c2d221
Increate update debounce from 50ms to 100ms
2020-11-03 13:33:18 +00:00
Lewis Russell
36f1b519ef
Add \n to buf contents passed to git-diff
...
Attempts to fix #3
2020-11-03 13:29:53 +00:00
Lewis Russell
1ee577246b
Revert "Add config.debounce"
...
This reverts commit 7fc3174c16
.
2020-11-03 13:25:19 +00:00
Lewis Russell
e3b66ae5a1
Add config.debounce
...
Increase default from 50ms to 100ms
2020-11-03 12:39:15 +00:00
Lewis Russell
104ead72c1
Always return if cache is nil
2020-11-03 12:15:33 +00:00
Lewis Russell
193906990b
Move debug to separate module
...
Output to log file instead of nvim output
2020-11-03 12:12:22 +00:00
Lewis Russell
e3903ae708
Pass buffer contents via stding to git-diff
...
Avoids having to manage an extra temp file
2020-11-03 12:01:33 +00:00
Lewis Russell
e93611397a
Fix error when jumping with no diffs
2020-11-01 15:35:22 +00:00
Lewis Russell
7dadca505b
Allow sign priority to be configurable
2020-10-31 18:39:17 +00:00
Lewis Russell
cc099d6b29
Be more conservative on updates triggered from the index
...
When the index changes, check whether the object of the staged file has
also changed before running another update. If the object hasn't changed
then we don't need to update.
Whilst we are at it also collect the mode bits from the index and use
these when staging hunks instead of assuming them.
2020-10-31 18:32:50 +00:00
Lewis Russell
185f9e7467
Reduce sign priority to 6
2020-10-30 20:57:03 +00:00
Lewis Russell
58611fe234
Update README.md
2020-10-30 12:11:00 +00:00
Lewis Russell
8b1c1805a8
Add more todo's
2020-10-30 12:10:35 +00:00
Lewis Russell
e243005023
Fix typo in args
2020-10-28 21:37:01 +00:00
Lewis Russell
28d6bf5064
Fix cache issue
2020-10-28 21:31:13 +00:00
Lewis Russell
371a838a86
Fix a lot more issues
...
- Detect buffers better
- Use cache more
- Support git submodules
Change-Id: Iacae94de7efff5757f98a4eab9ad68448076c427
2020-10-28 15:51:07 +00:00
Lewis Russell
f15e82a68f
Respect algorithm in diffopt
...
Signs should be consistent when running :diffthis
Change-Id: I2ac6bdb77bba12fe48e897c6dd1e9fb27f6ee249
2020-10-28 15:51:04 +00:00
Lewis Russell
2530c4ed81
Update README.md
2020-10-27 17:19:01 +00:00
Lewis Russell
37227fd572
Improved efficiency
...
- Throttle the attach function. Was being triggered twice on the first
buffer for whatever reason
- Cache the staged content instead of updating on every update
- Make sure we use cache whenever we can
- Removed config.watch_index.enabled. Will be too much work to support
it.
- Add more debug info
Change-Id: I7acefac36d5589cf97b749ad42aab4a7131ef71d
2020-10-27 17:10:04 +00:00
Lewis Russell
99d11eb76f
Remove async call to reset hunk
2020-10-25 21:38:58 +00:00
Lewis Russell
83a85d430d
Add support for repeat.vim
2020-10-25 21:36:26 +00:00