Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions autoload/nvim_ghost/helper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,16 @@ function! s:send_GET_request(url) abort "{{{1
endfunction

function! nvim_ghost#helper#start_server() abort " {{{1
if has('win32')
if g:nvim_ghost_use_script
call jobstart(
\[g:nvim_ghost_python_executable, g:nvim_ghost_script_path],
\s:joblog_arguments_nokill
\)
elseif has('win32')
call jobstart(['cscript.exe',
\g:nvim_ghost_scripts_dir . 'start_server.vbs'])
else
if g:nvim_ghost_use_script
call jobstart(
\[g:nvim_ghost_python_executable, g:nvim_ghost_script_path],
\s:joblog_arguments_nokill
\)
else
call jobstart([g:nvim_ghost_binary_path], s:joblog_arguments_nokill)
endif
endif
endfunction

Expand Down
7 changes: 0 additions & 7 deletions plugin/nvim_ghost.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ let $GHOSTTEXT_SERVER_PORT = g:nvim_ghost_server_port

" Abort if script_mode is enabled but infeasible
if g:nvim_ghost_use_script
if has('win32')
echohl WarningMsg
echom 'Sorry, g:nvim_ghost_use_script is currently not available on
\ Windows. Please remove it from your init.vim to use nvim-ghost.'
echohl None
finish
endif
if !exists('g:nvim_ghost_python_executable')
echohl WarningMsg
echom 'Please set g:nvim_ghost_python_executable
Expand Down