Edit remote files via SSH with fzf-lua integration.
- Neovim >= 0.10
- fzf-lua
- SSH configured in
~/.ssh/config
return {
"ultimatile/remote-edit.nvim",
dependencies = { "ibhagwan/fzf-lua" },
opts = {},
}:Redit " Select host from ~/.ssh/config
:Redit hostname " Connect to specified host directlySelect a host from your SSH config, then browse and edit files.
| Key | Action |
|---|---|
<C-h> (default) |
Show/hide dotfiles |
Dotfiles are hidden by default. Press <C-h> in the fzf picker to toggle visibility.
opts = {
keymaps = {
toggle_hidden = "<C-h>", -- change dotfile toggle key
},
}If you see scp: Received message too long or netrw: shell signalled an error, your remote shell may be producing output in non-interactive sessions.
Try adding this to the top of your remote ~/.bashrc:
[[ $- != *i* ]] && returnThis ensures .bashrc exits early for non-interactive sessions (like scp/sftp).
Apache-2.0
Project structure based on nvim-plugin-template.