Skip to content

nagaohiroki/unity.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unity.nvim

This is a Neovim plugin for Unity

  • Unity Play/Stop/Refresh with Neovim commands.
  • Configuration options for nvim-dap. (Please check the license of the package before using it.)

Requrements

optional

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

Installation

Install the plugin with your preferred package manager:

{
    'nagaohiroki/unity.nvim',
    opts = {
        discover_time = 2000 -- default option
    }
}

nvim-dap option

{
    'mfussenegger/nvim-dap',
    dependencies = {
        'nagaohiroki/unity.nvim',
    },
    config = function()
        local dap = require('dap')
        vim.keymap.set('n', '<F5>', function()
            if dap.session() == nil then
                local unity = require('unity')
                -- vstuc
                dap.adapters.vstuc = unity.vstuc_dap_adapter()
                dap.configurations.cs = unity.vstuc_dap_configuration()
                -- unity-debug(old)
                -- dap.adapters.unity = unity.unity_dap_adapter()
                -- dap.configurations.cs = { unity.unity_dap_configuration() }
            end
            dap.continue()
        end)
    end
}
Command
URefresh Refresh Unity
UPlay Play Unity
UStop Stop Playing Unity
UPause Pause Unity
Unpause Unpause Unity
ShowUnityProcess Show Debug Target Info
InstallUnityDebugger Install vstuc *1
InstallUnityDebuggerOld Install unity-debug *1

*1 Installed debugger path.

  • Linux or MacOS: ~/.local/share/nvim/unity-degger
  • Windows: %LOCALAPPDATA%\nvim-data\unity-degger

About

This is a Neovim plugin for Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages