Skip to content

dbobrenko/nvim-gamedev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

nvim-gamedev

GameDev addons to your NeoVim config.

Pre-requirements

Requires already existing NeoVim.

If you are new to NeoVim, a good starting point could be one of the following configs:

After NeoVim setup is complete, jump to Setup section.

Setup

To embrace the full god-like power of NeoVim, it is recommended to setup at least csharp_ls LSP and netcoredbg debugger.

Unity

  1. Clone this repo to your existing NeoVim directory.
git clone https://github.com/dbobrenko/nvim-gamedev ~/.config/nvim/gamedev

MacOS X

  1. Install neovim-remote to be able to open scripts in your existing NeoVim session.
pip install neovim-remote
# Create a symbolic link to your bin folder, in order to access `neovim-remote` from Unity.
sudo ln -s `which nvr` /usr/local/bin/nvr
  1. Install iTerm2.
brew install --cask iterm2
  1. Go to Unity Settings -> External Tools.

  2. Set External Script Editor to: $HOME/.config/nvim/gamedev/unity/launcher_mac.sh.

  3. Set External Script Editor Args to: +$(Line) $(File)

  4. Finally, open NeoVim as: nvim --listen "/tmp/nvimsocket" and enjoy! For convenience, one can make an alias nvim="nvim --listen '/tmp/nvimsocket'".

To Do

  • Unity: Open files from Unity in a new NeoVim session.
  • Unity: Open files from Unity in an existing NeoVim session.
  • Unity: Attach to debugger process.