mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker.preview): don't enable numbers when minimal=true
This commit is contained in:
parent
e7d609b544
commit
04e2995bbf
2 changed files with 2 additions and 6 deletions
|
@ -267,11 +267,7 @@ M.help = {
|
|||
previewers = {
|
||||
file = { ft = "help" },
|
||||
},
|
||||
win = {
|
||||
preview = {
|
||||
minimal = true,
|
||||
},
|
||||
},
|
||||
win = { preview = { minimal = true } },
|
||||
confirm = "help",
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ function M.new(opts, main)
|
|||
wo = {
|
||||
cursorline = false,
|
||||
colorcolumn = "",
|
||||
number = true,
|
||||
number = opts.win.preview.minimal ~= true,
|
||||
relativenumber = false,
|
||||
list = false,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue