feat(picker.list): make conceallevel configurable. Fixes #635

This commit is contained in:
Folke Lemaitre 2025-01-19 11:32:42 +01:00
parent 4b49357319
commit d88eab6e3f
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 4 additions and 2 deletions

View file

@ -224,6 +224,10 @@ local defaults = {
["<a-w>"] = "cycle_win",
["<Esc>"] = "close",
},
wo = {
conceallevel = 2,
concealcursor = "nvc",
},
},
-- preview window
preview = {

View file

@ -47,8 +47,6 @@ function M.new(picker)
bo = { modifiable = false, filetype = "snacks_picker_list" },
wo = {
foldenable = false,
conceallevel = 3,
concealcursor = "nvc",
cursorline = false,
winhighlight = Snacks.picker.highlight.winhl("SnacksPickerList", { CursorLine = "Visual" }),
},