diff --git a/lua/remote-dev/init.lua b/lua/remote-dev/init.lua index dda1b3e..7667c37 100644 --- a/lua/remote-dev/init.lua +++ b/lua/remote-dev/init.lua @@ -2703,7 +2703,7 @@ local function connectToHost() if not remoteDirPath then return end - local portSuffix = not selectedHost.port and "" or "-p " .. tostring(selectedHost.port) + local portSuffix = not selectedHost.port and "" or " -p " .. tostring(selectedHost.port) local password = vim.fn.input("enter password: ") if sshfsConnect({ selectedHost = selectedHost, diff --git a/src/index.ts b/src/index.ts index 75b9191..9f69a77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ const connectToHost = ()=>{ const remoteDirPath = vim.fn.input("enter remote dir: ") if(!remoteDirPath) return - const portSuffix = !selectedHost.port ? "":`-p ${selectedHost.port}` + const portSuffix = !selectedHost.port ? "":` -p ${selectedHost.port}` const password = vim.fn.input("enter password: ")