A compatibility layer between Unity's Visual Studio Code integration and Neovim.
Report Bug
·
Request Feature
To install the adapter, ensure you have Rust installed, then run the commands below:
git clone https://github.com/Insprill/unity-nvim-adapter && cd unity-nvim-adapter
cargo build --release
cp target/release/unity-nvim-adapter-code ~/.local/shareThis will copy the binary to ~/.local/share/unity-nvim-adapter-code.
You may copy or rename it somewhere else if you'd like, but the name must end with code.
This is required for Unity to integrate with it properly.
The Neovim plugin can be installed like any other plugin.
When using with lazy.nvim,
ensure to set lazy = false so the pipe can be created as soon as Neovim starts.
{
"insprill/unity-nvim-adapter",
lazy = false,
}In your Unity project, ensure you have the Visual Studio Editor package installed.
Go to Edit > Preferences > External Tools,
click on the "External Script Editor" dropdown,
select Browse, then find and select the adapter "code" binary (~/.local/share/code if you copied the commands above).
Now if you open a script or click on a log line, it will open in Neovim :)
The configuration is located at ~/.config/unity-nvim-adapter.toml.
Example default configuration
use_neovide = false