mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker): correctly normalize path after fnamemodify
This commit is contained in:
parent
1f8a41fa83
commit
f351dcfcac
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ function M.filename(item, picker)
|
|||
if not item.file then
|
||||
return ret
|
||||
end
|
||||
local path = vim.fs.normalize(item.file)
|
||||
path = vim.fn.fnamemodify(path, ":~:.")
|
||||
local path = vim.fn.fnamemodify(item.file, ":~:.")
|
||||
path = vim.fs.normalize(path)
|
||||
local name, cat = path, "file"
|
||||
if item.buf and vim.api.nvim_buf_is_loaded(item.buf) then
|
||||
name = vim.bo[item.buf].filetype
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue