This is a Neovim plugin for Unity
- Unity Play/Stop/Refresh with Neovim commands.
- Debug Unity from Neovim. (Please check the license of the package before using it.)
- Neovim >= 0.10.0
- NeovimForUnity (Unity Package)
optional
- .NET SDK installed and
dotnet
command available(for vsutc debugger) - mono (for old unity-debugger)
{
'mfussenegger/nvim-dap',
dependencies = {
'nagaohiroki/unity.nvim',
},
config = function()
require('unity').setup()
end
}
Command | |
---|---|
URefresh | Refresh Unity |
UPlay | Play Unity |
UStop | Stop Playing Unity |
UPause | Pause Unity |
Unpause | Unpause Unity |
ShowUnityProcess | Show Debug Target Info |
UnityDebuggerInstall(args: vstuc or unity-debug) | Install Debugger *1 |
UnityDebuggerUninstall(args: Press Ctrl+D to see suggestions) | Uninstall Debugger |
*1 Installed debugger path.
- Linux or MacOS:
~/.local/share/nvim/unity-debugger
- Windows:
%LOCALAPPDATA%\nvim-data\unity-debugger
{
'mfussenegger/nvim-dap',
dependencies = {
'nagaohiroki/unity.nvim',
},
config = function()
require('unity').setup(
{
discover_time = 2000,
install_path = vim.fs.joinpath(vim.fn.stdpath('data'), 'unity-debugger', 'extensions'),
install_path_vscode = vim.fs.joinpath(vim.env.HOME, '.vscode', 'extensions'),
debugger = 'vstuc',
debuggers =
{
vstuc =
{
publisher = 'VisualStudioToolsForUnity',
extension = 'vstuc',
version = '1.1.1',
},
unity_debug =
{
publisher = 'deitry',
extension = 'unity-debug',
version = '3.0.11',
},
},
})
end
}