You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A minimal, fast **SSHFS** integration for **NeoVim** that **works with YOUR setup**. No forced dependencies. Use your preferred file picker, search tools, and workflow to edit remote files without leaving your editor.
9
9
@@ -108,12 +108,12 @@ You can optionally customize behavior by passing a config table to setup().
sshfs_args= {-- these are the sshfs options that will be used
112
+
"-o reconnect",-- Automatically reconnect if the connection drops
113
+
"-o ConnectTimeout=5",-- Time (in seconds) to wait before failing a connection attempt
114
+
"-o compression=yes",-- Enable compression to reduce bandwidth usage
115
+
"-o ServerAliveInterval=15",-- Send a keepalive packet every 15 seconds to prevent timeouts
116
+
"-o ServerAliveCountMax=3",-- Number of missed keepalive packets before disconnecting
117
117
},
118
118
},
119
119
mounts= {
@@ -154,6 +154,11 @@ require("sshfs").setup({
154
154
})
155
155
```
156
156
157
+
>[!TIP]
158
+
> The `sshfs_args` table can accept any configuration option that applies to the `sshfs` command. You can learn more about [sshfs mount options here](https://man7.org/linux/man-pages/man1/sshfs.1.html).
159
+
>
160
+
> In addition, sshfs also supports a variety of options from [sftp](https://man7.org/linux/man-pages/man1/sftp.1.html) and [ssh_config](https://man7.org/linux/man-pages/man5/ssh_config.5.html).
161
+
157
162
## 🔧 Commands
158
163
159
164
-`:SSHConnect [host]` - Connect to SSH host (picker or direct)
@@ -171,12 +176,12 @@ This plugin optionally provides default keybindings under `<leader>m`. These can
171
176
172
177
| Mapping | Description |
173
178
| ------------ | ------------------------- |
174
-
|`<leader>me`| Edit SSH config files |
175
-
|`<leader>mg`| Grep remote files |
176
179
|`<leader>mm`| Mount an SSH host |
177
-
|`<leader>mo`| Browse remote mount |
178
-
|`<leader>mr`| Reload SSH configuration |
179
180
|`<leader>mu`| Unmount an active session |
181
+
|`<leader>me`| Edit SSH config files |
182
+
|`<leader>mr`| Reload SSH configuration |
183
+
|`<leader>mo`| Browse remote mount |
184
+
|`<leader>mg`| Grep remote files |
180
185
181
186
If [which-key.nvim](https://github.com/folke/which-key.nvim) is installed, the `<leader>m` group will be labeled with a custom icon (``).
182
187
@@ -186,14 +191,14 @@ You can override the keymaps or the prefix like this:
0 commit comments