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
b5c630f451
chore(build): auto-generate docs
2024-12-14 06:52:28 +00:00
Folke Lemaitre
26b7d4cbd9
fix(input): open input window with noautocmd=true
set. Fixes #287
2024-12-14 07:51:31 +01:00
folke
48f80f3fea
chore(build): auto-generate docs
2024-12-14 06:48:17 +00:00
Folke Lemaitre
db768a5497
fix(input): check if parent win still exists. Fixes #287
2024-12-14 07:47:31 +01:00
folke
ed23474b25
chore(build): auto-generate docs
2024-12-13 22:58:36 +00: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
github-actions[bot]
4ef74f09ff
chore(main): release 2.10.0 ( #272 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.10.0](https://github.com/folke/snacks.nvim/compare/v2.9.0...v2.10.0 )
(2024-12-13)
### Features
* **animate:** add done to animation object
([ec73346
](ec73346b7d
))
* **lazygit:** respect existing LG_CONFIG_FILE when setting config paths
([#208 ](https://github.com/folke/snacks.nvim/issues/208 ))
([ef114c0
](ef114c0efe
))
* **scroll:** added spamming detection and disable animations when user
is spamming keys :)
([c58605f
](c58605f8b3
))
* **scroll:** improve smooth scrolling when user is spamming keys
([5532ba0
](5532ba07be
))
* **zen:** added on_open / on_close callbacks
([5851de1
](5851de157a
))
* **zen:** make zen/zoom mode work for floating windows. Closes
[#5028 ](https://github.com/folke/snacks.nvim/issues/5028 )
([05bb957
](05bb95739a
))
### Bug Fixes
* **dashboard:** set cursor to non-hidden actionable items. Fixes
[#273 ](https://github.com/folke/snacks.nvim/issues/273 )
([7c7b18f
](7c7b18fdee
))
* **indent:** fix rendering issues when `only_scope` is set for indent.
Fixes [#268 ](https://github.com/folke/snacks.nvim/issues/268 )
([370703d
](370703da81
))
* **indent:** only render adjusted top/bottom. See
[#268 ](https://github.com/folke/snacks.nvim/issues/268 )
([54294cb
](54294cba6a
))
* **notifier:** set `modifiable=false` for notifier history
([12e68a3
](12e68a33b5
))
* **scope:** change from/to selection to make more sense
([e8dd394
](e8dd394c01
))
* **scope:** possible loop? See
[#278 ](https://github.com/folke/snacks.nvim/issues/278 )
([ac6a748
](ac6a74823b
))
* **scratch:** normalize filename
([5200a8b
](5200a8baa5
))
* **scroll:** don't animate scroll distance 1
([a986851
](a986851a74
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-13 17:08:34 +01:00
folke
cb68df337e
chore(build): auto-generate docs
2024-12-13 14:59:49 +00: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
833c0667b4
chore(build): auto-generate docs
2024-12-13 12:38:26 +00: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
3cbbac0f83
chore(build): auto-generate docs
2024-12-13 07:09:55 +00: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
52086010d3
docs(zen): docgen
2024-12-12 18:32:50 +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
4b8377c83a
chore(build): auto-generate docs
2024-12-12 17:14:23 +00: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
github-actions[bot]
8a98e92dc5
chore(main): release 2.9.0 ( #261 )
...
🤖 I have created a release *beep* *boop*
---
## [2.9.0](https://github.com/folke/snacks.nvim/compare/v2.8.0...v2.9.0 )
(2024-12-12)
### Features
* **animate:** allow disabling all animations globally or per buffer
([25c290d
](25c290d7c0
))
* **animate:** allow toggling buffer-local / global animations with or
without id
([50912dc
](50912dc2fd
))
* **dashboard:** add dashboard startuptime icon option
([#214 ](https://github.com/folke/snacks.nvim/issues/214 ))
([63506d5
](63506d5168
))
* **indent:** animation styles `out`, `up_down`, `up`, `down`
([0a9b013
](0a9b013ff1
))
* **indent:** don't animate indents when new scope overlaps with the
previous one, taking white-space into account. See
[#264 ](https://github.com/folke/snacks.nvim/issues/264 )
([9b4a859
](9b4a85905a
))
* **indent:** move animate settings top-level, since they impact both
scope and chunk
([baf8c18
](baf8c180d9
))
* **toggle:** added zoom toggle
([3367705
](3367705813
))
* **toggle:** return toggle after map
([4f22016
](4f22016b4b
))
* **util:** get var either from buffer or global
([4243912
](42439123c4
))
### Bug Fixes
* **indent:** make sure cursor line is in scope for the `out` style.
Fixes [#264 ](https://github.com/folke/snacks.nvim/issues/264 )
([39c009f
](39c009fe0b
))
* **indent:** when at edge of two blocks, prefer the one below. See
[#231 ](https://github.com/folke/snacks.nvim/issues/231 )
([2457d91
](2457d913dc
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-12 13:55:24 +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
19d131523a
docs: docgen
2024-12-12 11:04:18 +01:00
Folke Lemaitre
0a9b013ff1
feat(indent): animation styles out
, up_down
, up
, down
2024-12-12 11:03:35 +01:00
folke
5d1ae36d81
chore(build): auto-generate docs
2024-12-12 08:19:51 +00: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
Folke Lemaitre
25c290d7c0
feat(animate): allow disabling all animations globally or per buffer
2024-12-12 08:44:19 +01:00
Folke Lemaitre
4f22016b4b
feat(toggle): return toggle after map
2024-12-12 08:00:14 +01:00
folke
1c412f11c0
chore(build): auto-generate docs
2024-12-12 06:29:12 +00:00
Folke Lemaitre
3367705813
feat(toggle): added zoom toggle
2024-12-12 07:28:09 +01:00
SueXY
63506d5168
feat(dashboard): add dashboard startuptime icon option ( #214 )
...
## Description
Adds an `icon` option to the dashboard `startup` section. So people
(like me, who thinks an emoji in a bunch of nerdfonts is awkward) can
change it easily.
## Screenshots
<details>
<summary>Screenshots</summary>
Screenshot with a minimal config

</details>
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-12-12 06:50:04 +01:00
folke
20a19dfaa8
chore(build): auto-generate docs
2024-12-12 05:43:33 +00:00
Folke Lemaitre
2457d913dc
fix(indent): when at edge of two blocks, prefer the one below. See #231
2024-12-12 06:42:35 +01:00