Skip to content

Commit 9f97150

Browse files
fix: go back to normal mode when connect (#52)
1 parent ee63d7c commit 9f97150

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/telescope/_extensions/remote-sshfs.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ local function connect(_)
6565
local host = hosts[selection[1]]
6666

6767
connections.connect(host)
68+
69+
vim.schedule(function()
70+
vim.cmd "stopinsert"
71+
end)
6872
end)
6973
return true
7074
end,

0 commit comments

Comments
 (0)