Skip to content

Commit 42556e3

Browse files
committed
use vim.fs.abspath exepand ~
1 parent 0264db9 commit 42556e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/dired.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ end
55
vim.g.loaded_dired = true
66

77
vim.api.nvim_create_user_command('Dired', function(opts)
8-
local path = #opts.args > 0 and opts.args or vim.uv.cwd()
8+
local path = #opts.args > 0 and vim.fs.abspath(opts.args) or vim.uv.cwd()
99
require('dired').browse_directory(path)
1010
end, { nargs = '?' })
1111

0 commit comments

Comments
 (0)