Neovim Plugin
âšī¸ Info:
This plugin requires at least Neovim 0.7.0.
The Neovim plugin is located at https://github.com/ethersync/ethersync-vim, so you would usually add the string "ethersync/ethersync-vim"
to your plugin manager.
We recommend creating a mapping for the :EthersyncJumpToCursor
command, which jumps to another user's cursor.
Lazy
If you're using the Lazy plugin manager, you can use a configuration block like this:
{
"ethersync/ethersync-vim",
keys = { { "<leader>j", "<cmd>EthersyncJumpToCursor<cr>" } },
lazy = false,
}
pckr.nvim
{
"ethersync/ethersync-vim",
config = function()
vim.keymap.set('n', '<leader>j', '<cmd>EthersyncJumpToCursor<cr>')
end
}
Manual installation
If you're not using a plugin manager, here's a "quick and dirty" way to install the plugin:
git clone git@github.com:ethersync/ethersync-vim $HOME/.local/share/nvim/site/pack/plugins/start/ethersync
Nix
For testing purposes, you can run an Ethersync-enabled Neovim like this:
nix run github:ethersync/ethersync#neovim
Confirm the installation
To confirm that the plugin is installed, try running the :EthersyncInfo
command in Neovim. It should show the message "Not connected to Ethersync daemon."