Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ require('remote-sshfs').setup{
mounts = {
base_dir = vim.fn.expand "$HOME" .. "/.sshfs/", -- base directory for mount points
unmount_on_exit = true, -- run sshfs as foreground, will unmount on vim exit
remote_dir = "", -- remote directory to mount, by default home directory of connecting user
},
handlers = {
on_connect = {
Expand Down
2 changes: 1 addition & 1 deletion lua/remote-sshfs/connections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ M.mount_host = function(host, mount_dir, ask_pass)
if host["Path"] then
sshfs_cmd = sshfs_cmd .. ":" .. host["Path"] .. " "
else
sshfs_cmd = sshfs_cmd .. ": "
sshfs_cmd = sshfs_cmd .. ":" .. config.mounts.remote_dir .. " "
end

sshfs_cmd = sshfs_cmd .. mount_dir
Expand Down