Folke Lemaitre
8b5f76292b
fix(win): allow scrolling beyond eob
2025-11-09 10:35:14 +01:00
Folke Lemaitre
acc41322de
style: luals
2025-11-09 09:45:04 +01:00
Folke Lemaitre
6d721388cc
feat(win): opts.footer_keys can now be an array of lhs to show instead of all. See #2469
2025-11-09 09:33:24 +01:00
Folke Lemaitre
9bd41bb2ff
fix(win): use normkey instead of keytrans for footer keys
2025-11-09 09:32:25 +01:00
Folke Lemaitre
6134c98d48
feat(win): new border top_bottom
2025-11-09 09:31:46 +01:00
Folke Lemaitre
c1e15001c0
fix(win): when a floating win becomes non-floating, remove its backdrop
2025-11-08 06:20:31 +01:00
Folke Lemaitre
685c433e61
fix(picker): fix nowait for <c-r>
2025-11-08 06:17:02 +01:00
Folke Lemaitre
08c0951523
feat(win): better zindex calculation
2025-11-07 15:08:56 +01:00
Folke Lemaitre
195faa0646
fix(win): set foldcolumn='0' for minimal style. See #2390
2025-11-05 07:21:58 +01:00
Folke Lemaitre
2099572fe8
fix(win): fixed fixbuf. Closes #2409
2025-11-02 16:35:39 +01:00
Folke Lemaitre
de352425f7
fix(win): when fixbuf triggers in a floating window, just close it. Closes #2380
2025-10-29 15:15:59 +01:00
Folke Lemaitre
a8930bdb61
fix(win): ignore errors on destroy. Closes #2381
2025-10-29 14:02:18 +01:00
Folke Lemaitre
03872973b3
fix(win): scratch buffers were sometimes not deleted
2025-10-26 20:10:17 +01:00
flashios09
869709dd65
feat(win): add SnacksWinSeparator to default win.wo.winhighlight ( #2340 )
...
See #2336
2025-10-24 17:01:24 +02:00
flashios09
381265b543
feat(win): add default *Snacks* prefixed WinSeparator ( #2338 )
...
See #2336
2025-10-24 16:41:43 +02:00
Folke Lemaitre
bbd6d42a97
fix(win): use sbuffer instead of split for split windows
2025-10-24 10:55:41 +02:00
Folke Lemaitre
b30523c89f
feat(win): added support for vim.o.winborder. Set win.border = true to use it
2025-10-22 23:06:35 +02:00
Valentin Degenne
b8d17192b6
feat(win): generalize footer options for keys ( #363 )
...
#fixes https://github.com/folke/snacks.nvim/issues/361
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-10-22 22:36:09 +02:00
SheffeyG
471eb036c4
fix(win): check parent win is valid before getting size ( #2315 )
...
## Related Issue(s)
- Fixes #1926
2025-10-22 10:21:24 +02:00
Folke Lemaitre
e46a09427c
feat(win): make split window "stacking" configurable
2025-10-21 16:04:38 +02:00
starbased
2aacf55082
fix(terminal): set buffer when opening terminal with position='current' ( #2162 )
...
## Description
When opening a terminal with position='current', the terminal buffer
wasn't being set in the current window, causing the original buffer
content to remain visible with terminal styling applied.
This fix adds a call to vim.api.nvim_win_set_buf() to properly set the
terminal buffer when using position='current'. Also updates type
annotations to include the 'current' position option and adds tests to
prevent regression.
Credit to the solution to by @Baricus in issue #2148 .
## Related Issue(s)
Fixes #2148
Co-authored-by: Baricus <31926270+Baricus@users.noreply.github.com>
2025-10-20 15:22:02 +02:00
SheffeyG
ba7bbcd0df
fix(terminal): check win valid before creating a new terminal ( #1927 )
...
## Description
Checking the win vaild also before creating a new terminal
## Related Issue(s)
- Fixes #1926
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-10-19 10:25:34 +02:00
Folke Lemaitre
fa29c6c926
revert: dont always set border when setting title. Closes #1436
2025-02-26 07:55:13 +01:00
Folke Lemaitre
76311aba31
fix(win): make sure the border is set when setting the title
2025-02-25 20:25:53 +01:00
Folke Lemaitre
b100c93717
fix(win): use correct keys for displaying help. Closes #1364
2025-02-22 08:04:06 +01:00
Folke Lemaitre
a00c323d4b
fix(win): don't update title is relative win is invalid. Closes #1348
2025-02-21 08:06:52 +01:00
Folke Lemaitre
a1cb54cc9e
fix(win): call on_close before actually closing so that prev win can be set. Closes #962
2025-02-19 19:38:36 +01:00
Folke Lemaitre
77204102a1
fix(win): better handling when the command window is open. Closes #1245
2025-02-18 21:23:10 +01:00
Folke Lemaitre
c760b8b85b
refactor(win): move fixbuf to separate method
2025-02-16 08:21:52 +01:00
Folke Lemaitre
f36c70a912
fix(dashboard): dashboard can be a main editor window
2025-02-14 12:39:19 +01:00
max397574
f200b3f6c8
feat(picker): allow complex titles ( #1112 )
...
fixes https://github.com/folke/snacks.nvim/issues/1111
## Description
Allows more customization of the title
## Related Issue(s)
Fixes #1111
## Screenshots

---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2025-02-13 12:22:56 +01:00
Folke Lemaitre
c5540974fa
fix(layout): make sure width/height are at least 1. Closes #1090
2025-02-12 08:04:39 +01:00
Folke Lemaitre
8272c1c66f
fix(all): better support for opening windows / pickers / ... on multiple tab pages. Closes #1043
2025-02-10 11:24:13 +01:00
Folke Lemaitre
cb99c46fa1
fix(win): apply win-local window options for new buffers displayed in a window. Fixes #925
2025-02-04 20:20:40 +01:00
Folke Lemaitre
c8430fdd8d
fix(win): better handling of alien buffers opening in managed windows. See #886
2025-02-03 10:41:16 +01:00
Folke Lemaitre
4aba559c6e
fix(win): close help when leaving the win buffer
2025-02-01 10:20:03 +01:00
Folke Lemaitre
e1566a483d
fix(util): better keymap normalization
2025-02-01 10:20:03 +01:00
Folke Lemaitre
18de5bb238
fix(win): properly handle closing the last window. Fixes #793
2025-01-30 22:26:39 +01:00
PFiS
6effbcdff1
fix(win): error when enabling padding with listchars="" ( #786 )
...
CI / ci (push) Failing after 0s
## Description
`vim.split` would split `""` into `{ "" }`, causing `table.concat` to
output `",eol: "`.
Resolved by using `vim.tbl_filter` to filter out empty strings before
applying `table.concat`.
2025-01-29 21:07:36 +01:00
Folke Lemaitre
2f396b341d
fix(dashboard): prevent starting picker twice when no session manager. Fixes #783
CI / ci (push) Failing after 0s
2025-01-29 13:09:02 +01:00
Folke Lemaitre
473be039e5
fix(win): don't destroy opts. Fixes #726
2025-01-24 07:00:29 +01:00
Folke Lemaitre
84ee7ddf54
fix(win): better way of finding a main window when fixbuf is true
2025-01-23 13:52:16 +01:00
acidclouds
bc47e0b1dd
feat(picker): preview window horizontal scrolling ( #686 )
...
## Description
This is an initial commit for trying to add horizontal scrolling for the
picker preview window.
Known issue: when scrolling horizontally with scope indent, the indent
chars persist in the preview window and don't disappear as they
should...
Edit:
I just realized this happens only when we are previewing a buffer that
is already open. Only in that case the indents are being rendered... if
we are previewing a file that is not currently open the indents don't
get rendered and therefore there is no issue. Maybe this is a bug?
Should we prevent rendering of the indent guides in the preview window?
## Related Issue(s)
- Fixes #676
## Screenshots

---------
Co-authored-by: Val Gorokhovsky <valery.gorokhovsky@riverbed.com>
2025-01-23 09:13:54 +01:00
Folke Lemaitre
3fa2ea3115
perf(picker): gc optims
2025-01-21 18:33:13 +01:00
Folke Lemaitre
eebf44a34e
perf(picker): fixed some issues with closed pickers not always being garbage collected
2025-01-20 10:30:45 +01:00
Folke Lemaitre
abd7e61b73
fix(win): always close created scratch buffers when win closes
2025-01-19 23:40:36 +01:00
Folke Lemaitre
dc3f114c1f
fix(picker): add keymaps for preview scratch buffers
2025-01-19 17:33:57 +01:00
Folke Lemaitre
c49f38c5a9
fix(win): clear syntax when setting filetype
2025-01-19 14:02:18 +01:00
Folke Lemaitre
ece76b333a
fix(picker.preview): scratch buffer filetype. Fixes #595
2025-01-19 12:00:57 +01:00
Folke Lemaitre
540ecbd9a4
fix(picker): better normkey. Fixes #610
2025-01-18 14:51:27 +01:00