From d9a29862d0a16db24755e9461c40554f528044d9 Mon Sep 17 00:00:00 2001 From: Muhammed Sahin Date: Wed, 14 May 2025 18:58:01 +0200 Subject: [PATCH 1/2] added remotee dir Added configurable default remote dir --- lua/remote-sshfs/connections.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/remote-sshfs/connections.lua b/lua/remote-sshfs/connections.lua index 8fc791a..6cd3e40 100644 --- a/lua/remote-sshfs/connections.lua +++ b/lua/remote-sshfs/connections.lua @@ -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 From 49c29bb265dc27dc67464ccba20216369b259c86 Mon Sep 17 00:00:00 2001 From: Muhammed Sahin Date: Wed, 14 May 2025 19:13:37 +0200 Subject: [PATCH 2/2] Expanded example config by remote_dir --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e7129d6..dcd121b 100644 --- a/README.md +++ b/README.md @@ -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 = {