mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.config): normalize opts.cwd
This commit is contained in:
parent
5a8d79847b
commit
69c013e1b2
1 changed files with 3 additions and 1 deletions
|
@ -77,8 +77,10 @@ function M.get(opts)
|
|||
|
||||
-- Merge the configs
|
||||
opts = Snacks.config.merge(unpack(todo))
|
||||
if opts.cwd == true then
|
||||
if opts.cwd == true or opts.cwd == "" then
|
||||
opts.cwd = nil
|
||||
elseif opts.cwd then
|
||||
opts.cwd = vim.fs.normalize(vim.fn.fnamemodify(opts.cwd, ":p"))
|
||||
end
|
||||
M.multi(opts)
|
||||
return opts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue