Skip to content

Sync across devices

Saltaformajo edited this page Oct 8, 2023 · 1 revision

Sync projects history and sessions across devices

Sessions and history can be synced across your devices with a help of such tools as rsync, Syncthing, Nextcloud, Dropbox, etc.

Set plugin's option datapath to a directory, that will be synced by external app:

--- ...
datapath = "~/SyncedDir/nvim-data"

Projects and sessions path are stored relative to the $HOME directory. So if you are using the same path on all devices relative to home, it will work for you.

If you have different username, it will not cause a problem (just don't hard-code it in your config, use a ~).

Clone this wiki locally