Skip to content

Commit e19c9cb

Browse files
committed
fix: open_shell_or_dir behavior
1 parent 45184ce commit e19c9cb

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

lua/utils/shell.lua

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,16 @@ M.open_session_or_dir = function(dir)
5959
if open_result == 0 then
6060
return
6161
end
62+
else
63+
vim.schedule(function()
64+
vim.cmd('cd ' .. dir)
65+
if utils.is_available('pickme') then
66+
require('pickme').pick('files', { cwd = dir })
67+
else
68+
vim.cmd('edit ' .. dir)
69+
end
70+
end)
6271
end
63-
vim.schedule(function()
64-
vim.cmd('cd ' .. dir)
65-
if utils.is_available('pickme') then
66-
require('pickme').pick('files', { cwd = dir })
67-
else
68-
vim.cmd('edit ' .. dir)
69-
end
70-
end)
7172
end
7273

7374
return M

0 commit comments

Comments
 (0)