Skip to content

Commit

Permalink
fix: run scene from neovim on windows
Browse files Browse the repository at this point in the history
vim-dispatch can't Start application in windows neovim :(
tpope/vim-dispatch#297
  • Loading branch information
habamax committed Apr 27, 2020
1 parent 073d535 commit 51fd9dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/godot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ endfunc
" Run arbitrary scene
func! s:run_scene(scene_name) abort
" if there is vim-dispatch installed, use it
if exists(":Start")
" vim-dispatch can't Start application in windows neovim :(
" https://github.com/tpope/vim-dispatch/issues/297
if has('win32') && has('nvim')
let cmd = "!start "
elseif exists(":Start")
let cmd = "Start "
elseif executable("cmd.exe")
let cmd = "!cmd.exe /c start "
Expand Down

0 comments on commit 51fd9dd

Please sign in to comment.