Skip to content

A compatibility layer between Unity's Visual Studio Code integration and Neovim

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Insprill/unity-nvim-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues


unity-nvim-adapter

A compatibility layer between Unity's Visual Studio Code integration and Neovim.

Report Bug · Request Feature

Installation

Adapter

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/share

This 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.

Neovim Plugin

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,
}

Unity

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 :)

Configuration

The configuration is located at ~/.config/unity-nvim-adapter.toml.

Example default configuration

use_neovide = false

About

A compatibility layer between Unity's Visual Studio Code integration and Neovim

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

  •