1
1
Fork
You've already forked ssh.nvim
0
WIP solution for Linux machines to use Neovim remotely
Shell 100%
2023年07月18日 11:56:05 +02:00
client New command nvim-remote-init 2023年07月18日 11:56:05 +02:00
server Ensure .var directories 2023年05月26日 10:19:04 +02:00
.gitignore Initial commit 2023年05月26日 06:35:47 +00:00
LICENSE Initial commit 2023年05月26日 06:35:47 +00:00
README.md New command nvim-remote-init 2023年07月18日 11:56:05 +02:00

ssh.nvim

WIP solution for Linux machines to use Neovim remotely. This is semi-automated as of now, but can be developed into a plugin later on.

Installation

We use GNU stow to symlink the files into the home directory. Alternatively you can use ln -s to make symlinks yourself. Requires:

  • neovim >= 0.9.0
  • openssh
  • systemd
  • stow (optional)

Here we assume the remote machine is accessible via the URL myremote.server. Replace it with the IP address or URL of your server.

Server

Connect to the remote server for example, ssh myremote.server

git clone https://codeberg.org/ashwinvis/ssh.nvim ~/ssh.nvim
cd ~/ssh.nvim
stow -v server
systemctl start --user nvim-headless.service
systemctl enable --user nvim-headless.service

Client

git clone https://codeberg.org/ashwinvis/ssh.nvim ~/ssh.nvim
cd ~/ssh.nvim
stow -v client

Usage

From the client machine

nvim-remote-init myremote.server
nvim-remote