Last active
July 23, 2023 12:41
-
-
Save FREEZX/d675b57db2f41b11088d54e1654a0e40 to your computer and use it in GitHub Desktop.
Windows Unity Neovim launcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To use this, you need to have a neovim installation and neovide. In unity preferences, browse to the .bat file and set it as external script editor. | |
| Here are the editor args needed to launch: `"$(ProjectPath)" $(File) $(Line)` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd %1 | |
| set file=%2 | |
| set row=%3 | |
| set remote=localhost:6666 | |
| netstat -o -n -a | findstr 6666 | |
| if %ERRORLEVEL% equ 0 goto FOUNDSRV | |
| START /B nvim --headless --listen %remote% | |
| :FOUNDSRV | |
| nvr --servername %remote% --remote +%row% %file% | |
| tasklist|find /i "neovide.exe" >NUL | |
| if %ERRORLEVEL% equ 0 goto FOUNDNVIDE | |
| START /B neovide --noidle --server %remote% %file% | |
| :FOUNDNVIDE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment