mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(picker.select): default height shows just the items. See #902
This commit is contained in:
parent
97570d23ac
commit
c667622fb7
2 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ M.select = {
|
|||
width = 0.5,
|
||||
min_width = 80,
|
||||
height = 0.4,
|
||||
min_height = 10,
|
||||
min_height = 3,
|
||||
box = "vertical",
|
||||
border = "rounded",
|
||||
title = "{title}",
|
||||
|
|
|
@ -34,7 +34,7 @@ function M.select(items, opts, on_choice)
|
|||
layout = {
|
||||
preview = false,
|
||||
layout = {
|
||||
height = math.floor(math.min(vim.o.lines * 0.8 - 10, #items + 2) + 0.5) + 10,
|
||||
height = math.floor(math.min(vim.o.lines * 0.8 - 10, #items + 2) + 0.5),
|
||||
},
|
||||
},
|
||||
actions = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue