mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.format): use item.file for filename_only
This commit is contained in:
parent
fbd39a48df
commit
e784a9e672
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ function M.filename(item, picker)
|
|||
local dir_hl = "SnacksPickerDir"
|
||||
|
||||
if picker.opts.formatters.file.filename_only then
|
||||
path = vim.fn.fnamemodify(path, ":t")
|
||||
path = vim.fn.fnamemodify(item.file, ":t")
|
||||
ret[#ret + 1] = { path, base_hl, field = "file" }
|
||||
else
|
||||
if item.dir then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue