Skip to content

nagaohiroki/unity.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity.nvim

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

Requrements

optional

  • .NET SDK installed and dotnet command available(for vsutc debugger)
  • mono (for old unity-debugger)

Installation

{
  '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

Configuration

{
  '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
}

About

This is a Neovim plugin for Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages