Commit Graph

42 Commits

Author SHA1 Message Date
ngpong
abcd00a7d5 fix: wipeout buf after closing the blame_line/preview_hunk window
Some checks failed
CI / commit_lint (push) Has been cancelled
CI / test (nightly) (push) Has been cancelled
CI / test (v0.10.0) (push) Has been cancelled
CI / test (v0.9.5) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / doc (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / luarocks-upload (push) Has been cancelled
release-please / update-doc (push) Has been cancelled
2025-01-10 19:19:43 +00:00
Lewis Russell
82bc6225e9 refactor: organize imports 2024-07-03 12:08:06 +01:00
zhaogang
b45ff86f56 feat(popup): add q keymap to quit 2024-04-03 17:44:32 +01:00
Lewis Russell
30541b73e9 refactor: popup 2023-11-16 15:29:25 +00:00
Lewis Russell
d05a21795c chore: tidying 2023-10-05 14:14:33 +01:00
Lewis Russell
7f6f1565ac refactor(preview): simplify linespec code 2023-10-04 14:45:59 +01:00
Lewis Russell
55f8fc7b13 fix: typing 2023-08-15 13:28:36 +01:00
Rocky Zhang
adcf2c7f2f fix: missing bottom border
Fixes: https://github.com/lewis6991/gitsigns.nvim/issues/841
2023-07-18 17:59:09 +01:00
Lewis Russell
92654646f8 refactor: post teal-pocolypse cleanup
- assume vim.iconv
2023-06-14 12:02:18 +01:00
Lewis Russell
4d63d996b0 refactor: remove teal 2023-06-13 15:32:14 +01:00
Lewis Russell
f388995990 feat: add more comments to generated lua files 2023-02-16 11:22:47 +00:00
Lewis Russell
8ad98db42a feat: add comments to generated lua files 2023-02-16 11:09:17 +00:00
Lewis Russell
5f1451ea7d fix(preview): close preview properly
Fixes #728
2023-02-15 12:24:19 +00:00
Wesley Merkel
d4f8c01280 fix: don't move preview window while it's focused 2023-01-04 20:39:01 +00:00
Lewis Russell
03639e6fc0 fix: do not focus preview when navigating hunks
Fixes #707
2023-01-04 14:31:41 +00:00
Lewis Russell
9c400e5c6f Revert "feat: move hunk preview window while scrolling"
This reverts commit 615f256d01.

Too buggy so reverting

Fixes #708
2023-01-04 14:04:36 +00:00
Wesley Merkel
615f256d01 feat: move hunk preview window while scrolling 2023-01-03 10:33:28 +00:00
Lewis Russell
e4a6028c3d fix: add absent argument for nvim_create_augroup
Co-authored-by: Vladimir Popov <6939832+vladimir-popov@users.noreply.github.com>
2022-10-07 16:50:29 +01:00
Lewis Russell
acc439a485 refactor(compat): remove v0.6.0 compat 2022-10-07 15:46:32 +01:00
Lewis Russell
231fa923fb fix(preview): do not close other windows 2022-09-15 08:25:58 +01:00
Sebastian Lyng Johansen
2300e4eadb
feat(preview): attach to popup if already open (#622)
Co-authored-by: Lewis Russell <lewis6991@gmail.com>
2022-09-14 11:16:08 +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
ec81dcc0a8 chore: formatting 2022-04-22 15:53:20 +01:00
Lewis Russell
0c7da98aab refactor(preview): use format string for windows 2022-04-17 12:59:58 +01:00
Lewis Russell
7ff03e1eba feat(nav): add option to auto preview
Resolves #494
2022-03-25 17:03:52 +00:00
Lewis Russell
865375407e refactor: use autocmd API 2022-03-03 15:55:40 +00:00
Lewis Russell
8630d265be fix(preview) Allow preview focus with <C-w>w 2021-08-21 17:03:20 +01:00
Lewis Russell
1d9adbfae8 fix(preview): Account for wrapped lines
.. when calculating height

Fixes #311
2021-08-21 16:07:16 +01:00
Evgeni Chasnovski
dd58b795a4 Make popup close on BufLeave. Fixes #296. 2021-08-07 11:41:04 +01:00
Lewis Russell
8f937a5634 Fix previews when nomodifiable is set.
Fixes #278
2021-07-23 15:35:29 +01:00
Lewis Russell
288fb8536c Improvements to preview_hunk()
- Add title the hunk preview
- Keep hunk preview open when navigating hunks
2021-07-09 15:48:38 +01:00
Lewis Russell
a4b5601f28 Fix wrapping in preview when signcolumn=auto:1-2
Fixes #222
2021-06-18 09:20:14 +01:00
Lewis Russell
c41247abeb Simplify floating window creation
- config.preview_config now contains the true defaults
- No longer apply additional window highlights
- Refactor and simplify

Resolves #170
2021-05-03 19:00:56 +01:00
Lewis Russell
50c5122c84 Add config.preview_config
Used to customise the preview window.

Resolves #159
2021-04-24 16:59:41 +01:00
Lewis Russell
50d012e1da Preview: don't set winhl if there is no border 2021-04-06 22:31:04 +01:00
Lewis Russell
98305f725d Preview: Add border and use minimal style
- I nvim doesn't yet have border support, then gitsigns should fallback to
opening a window without a border.

- Also fix #126
2021-04-05 09:49:10 +01:00
Daniel Bylinka
bf2c9d4bfe Preview: Set tabstop before calculating width
Add comment
2021-04-04 22:45:53 +01:00
Lewis Russell
9113de1ed5 Preview: Calculate width properly...again
Fixes #120
2021-04-04 09:58:42 +01:00
Lewis Russell
468fa4e4bc Preview: Calculate width properly
Fixes #120
2021-04-04 00:42:35 +01:00
Lewis Russell
f0c884b246 Port lua to teal
Create README.md for lua files
2021-01-30 12:00:31 +00:00
Lewis Russell
cdf4a81ae9 (feature) Add git blame integration 2020-12-06 21:28:58 +00:00
Lewis Russell
fd4a16253c Add ability to preview hunks in a floating window 2020-11-12 12:26:49 +00:00