mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker.list): scores debug
This commit is contained in:
parent
b5f7bbc0c9
commit
9499b944e7
1 changed files with 7 additions and 1 deletions
|
@ -350,7 +350,13 @@ function M:format(item)
|
|||
|
||||
if self.picker.opts.debug.scores then
|
||||
local score = item.score and ("%.2f "):format(item.score) or "nil"
|
||||
table.insert(line, 1, { score, "Number" })
|
||||
parts[#parts + 1] = score
|
||||
ret[#ret + 1] = {
|
||||
col = selw,
|
||||
end_col = selw + vim.api.nvim_strwidth(score),
|
||||
hl_group = "Number",
|
||||
}
|
||||
selw = selw + vim.api.nvim_strwidth(score)
|
||||
end
|
||||
|
||||
local col = selw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue