Folke Lemaitre
14d71c3fb2
fix(indent): fixup
2024-12-15 09:28:38 +01:00
Folke Lemaitre
f2bb7fa94e
feat(indent): properly handle continuation indents. Closes #286
2024-12-15 09:22:07 +01:00
Folke Lemaitre
effa885120
fix(util): on_key compat with Neovim 0.9
2024-12-15 08:36:14 +01:00
Folke Lemaitre
3d67bda1e2
fix(scroll): check mousescroll before spamming
2024-12-15 08:36:14 +01:00
Folke Lemaitre
002d5eb5c2
feat(util): on_key handler
2024-12-15 08:26:44 +01:00
Folke Lemaitre
cb42b952c5
feat(statuscolumn): allow left/right to be a function. Closes #288
2024-12-15 08:12:29 +01:00
Folke Lemaitre
dcc5338e6f
fix(dashboard): telescope can't be run from a vim.schedule
for some reason
2024-12-15 07:54:47 +01:00
Marcin
8f56e19f91
feat(notifier): notification history
option ( #297 )
...
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
Option to exclude some notifications from notification history,
for example, when dealing with spinners.
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
2024-12-15 07:46:27 +01:00
hankertrix
7db0cc9281
fix(indent): honor lead listchar ( #303 )
...
## Description
The lead listchar was not being honoured in
0e150f5510
,
this pull request fixes that.
## Related Issue(s)
Fixes #291 .
## Screenshots
Before the fix:

After the fix:

2024-12-15 07:45:42 +01:00
Folke Lemaitre
0e150f5510
fix(indent): honor listchars and list when blank is nil
. Closes #296
2024-12-14 22:46:37 +01:00
Folke Lemaitre
e5ace00ddf
style(indent): debug
2024-12-14 22:46:37 +01:00
Folke Lemaitre
b41320c6b4
test: added scope tests
2024-12-14 21:50:19 +01:00
Folke Lemaitre
a9536973a9
feat(scope): text objects now use treesitter scopes by default. See #231
2024-12-14 21:50:19 +01:00
Folke Lemaitre
b7355c16fb
fix(scope): better treesitter scope edge detection
2024-12-14 21:50:19 +01:00
Folke Lemaitre
8a8b1c976f
feat(scope): Scope:inner
for indent based and treesitter scopes
2024-12-14 21:50:19 +01:00
Folke Lemaitre
94e0849c3a
feat(scope): added __tostring
for debugging
2024-12-14 21:50:19 +01:00
Folke Lemaitre
be2779e942
fix(scope): add indent
to __eq
2024-12-14 21:50:19 +01:00
Folke Lemaitre
31bc409342
fix(indent): opts.indent.blank
now defaults to listchars.space
. Closes #291
2024-12-14 15:29:06 +01:00
Folke Lemaitre
7f668185ea
fix(indent): lower priorities of indent guides
2024-12-14 15:19:07 +01:00
Folke Lemaitre
ab07ec3ae7
style(toggle): make luals happy
2024-12-14 15:19:07 +01:00
Chris Grieser
97542a7d9b
fix(input): missing padding if neither title nor icon positioned left ( #292 )
...
## Description
The new`icon_pos` /`title_pos` options resulted in a situation where
there is missing padding when neither is positioned left. This PR fixes
this by falling back to `" "` as statuscolumn.
## Screenshots
before
<img alt="before" width=40%
src="https://github.com/user-attachments/assets/e99a600f-0ab6-4319-a70d-24e3f658a0bb ">
after
<img alt="after" width=40%
src="https://github.com/user-attachments/assets/377f2157-32c6-40fb-a439-9af9141f00e7 ">
2024-12-14 14:14:58 +01:00
Folke Lemaitre
5d00e6dec5
fix(input): go back to insert mode if input was started from insert mode. Fixes #287
2024-12-14 08:08:33 +01:00
Folke Lemaitre
26b7d4cbd9
fix(input): open input window with noautocmd=true
set. Fixes #287
2024-12-14 07:51:31 +01:00
Folke Lemaitre
db768a5497
fix(input): check if parent win still exists. Fixes #287
2024-12-14 07:47:31 +01:00
Folke Lemaitre
b0f5b74f4a
style: annotations
2024-12-13 23:57:50 +01:00
Folke Lemaitre
17494ad9bf
feat(win): win:line()
2024-12-13 23:57:50 +01:00
Folke Lemaitre
d0cb7070e9
feat(input): allow configuring position of prompt and icon
2024-12-13 23:57:50 +01:00
Folke Lemaitre
2a664b615f
ci: try making config options optional
2024-12-13 15:58:54 +01:00
Folke Lemaitre
ac6a74823b
fix(scope): possible loop? See #278
2024-12-13 15:44:11 +01:00
Scott Swensen
ef114c0efe
feat(lazygit): respect existing LG_CONFIG_FILE when setting config paths ( #208 )
...
## Description
This change preserves any existing Lazygit user config while still
adding the theme configuration.
New Behavior:
1. Check if `LG_CONFIG_FILE` already exists in the environment
(`vim.env.LG_CONFIG_FILE`)
2. If it exists, use that value; if not, fall back to the default config
path (`vim.fs.normalize(config_dir .. "/config.yml")`)
3. Append the normalized theme configuration path (`opts.theme_path`)
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-12-13 14:36:26 +01:00
Folke Lemaitre
05bb95739a
feat(zen): make zen/zoom mode work for floating windows. Closes #5028
2024-12-13 13:37:39 +01:00
Folke Lemaitre
12e68a33b5
fix(notifier): set modifiable=false
for notifier history
2024-12-13 13:36:59 +01:00
Folke Lemaitre
e8dd394c01
fix(scope): change from/to selection to make more sense
2024-12-13 13:23:52 +01:00
Folke Lemaitre
5200a8baa5
fix(scratch): normalize filename
2024-12-13 13:23:36 +01:00
Folke Lemaitre
5532ba07be
feat(scroll): improve smooth scrolling when user is spamming keys
2024-12-13 09:52:58 +01:00
Folke Lemaitre
7c7b18fdee
fix(dashboard): set cursor to non-hidden actionable items. Fixes #273
2024-12-13 09:45:28 +01:00
Folke Lemaitre
ec73346b7d
feat(animate): add done to animation object
2024-12-13 08:08:42 +01:00
Folke Lemaitre
370703da81
fix(indent): fix rendering issues when only_scope
is set for indent. Fixes #268
2024-12-13 08:08:22 +01:00
Folke Lemaitre
5851de157a
feat(zen): added on_open / on_close callbacks
2024-12-12 18:32:22 +01:00
Folke Lemaitre
54294cba6a
fix(indent): only render adjusted top/bottom. See #268
2024-12-12 18:27:30 +01:00
Folke Lemaitre
c58605f8b3
feat(scroll): added spamming detection and disable animations when user is spamming keys :)
2024-12-12 18:13:19 +01:00
Folke Lemaitre
a986851a74
fix(scroll): don't animate scroll distance 1
2024-12-12 18:13:19 +01:00
Folke Lemaitre
a9e1e699c2
style(indent): comments
2024-12-12 12:01:43 +01:00
Folke Lemaitre
9b4a85905a
feat(indent): don't animate indents when new scope overlaps with the previous one, taking white-space into account. See #264
2024-12-12 11:56:28 +01:00
Folke Lemaitre
39c009fe0b
fix(indent): make sure cursor line is in scope for the out
style. Fixes #264
2024-12-12 11:55:46 +01:00
Folke Lemaitre
0a9b013ff1
feat(indent): animation styles out
, up_down
, up
, down
2024-12-12 11:03:35 +01:00
Folke Lemaitre
50912dc2fd
feat(animate): allow toggling buffer-local / global animations with or without id
2024-12-12 09:18:54 +01:00
Folke Lemaitre
42439123c4
feat(util): get var either from buffer or global
2024-12-12 09:18:12 +01:00
Folke Lemaitre
baf8c180d9
feat(indent): move animate settings top-level, since they impact both scope and chunk
2024-12-12 09:17:54 +01:00
Folke Lemaitre
851dc7854b
docs: docgen
2024-12-12 08:44:47 +01:00