@@ -11,15 +11,15 @@ endif
1111let s: saved_updatetime = &updatetime
1212let s: can_use_cursorhold = v: false
1313let s: joblog_arguments = ! g: nvim_ghost_logging_enabled ? {} : {
14- \' on_stdout':{id,data,type - >nvim_ghost#helper #joboutput_logger (data,type )},
15- \' on_stderr':{id,data,type - >nvim_ghost#helper #joboutput_logger (data,type )},
14+ \' on_stdout':{id,data,type - >nvim_ghost#server #joboutput_logger (data,type )},
15+ \' on_stderr':{id,data,type - >nvim_ghost#server #joboutput_logger (data,type )},
1616 \}
1717let s: joblog_arguments_nokill = extend (copy (s: joblog_arguments ), {
1818 \' detach': v: true ,
1919 \' cwd': g: nvim_ghost_installation_dir ,
2020 \} )
2121
22- function ! nvim_ghost#helper #is_running () abort " {{{1
22+ function ! nvim_ghost#server #is_running () abort " {{{1
2323 let v: errmsg = ' '
2424 let l: url = s: localhost .. ' :' .. $GHOSTTEXT_SERVER_PORT
2525 let l: opts = #{ data_buffered: v: true }
@@ -76,10 +76,10 @@ function! s:send_GET_request(url) abort "{{{1
7676 call chansend (l: connection , " \r \n " )
7777
7878 " We're done, log what we sent
79- call nvim_ghost#helper #joboutput_logger ([' Sent ' . a: url ], ' ' )
79+ call nvim_ghost#server #joboutput_logger ([' Sent ' . a: url ], ' ' )
8080endfunction
8181
82- function ! nvim_ghost#helper #start_server () abort " {{{1
82+ function ! nvim_ghost#server #start_server () abort " {{{1
8383 if has (' win32' )
8484 call jobstart ([' cscript.exe' ,
8585 \g :nvim_ghost_scripts_dir . ' start_server.vbs' ])
@@ -95,19 +95,19 @@ function! nvim_ghost#helper#start_server() abort " {{{1
9595 endif
9696endfunction
9797
98- function ! nvim_ghost#helper #kill_server () abort " {{{1
98+ function ! nvim_ghost#server #kill_server () abort " {{{1
9999 call s: send_GET_request (' /exit' )
100100endfunction
101101
102- function ! nvim_ghost#helper #request_focus () abort " {{{1
102+ function ! nvim_ghost#server #request_focus () abort " {{{1
103103 call s: send_GET_request (' /focus?focus=' . v: servername )
104104endfunction
105105
106- function ! nvim_ghost#helper #session_closed () abort " {{{1
106+ function ! nvim_ghost#server #session_closed () abort " {{{1
107107 call s: send_GET_request (' /session-closed?session=' . v: servername )
108108 call rpcnotify (0 , " nvim_ghost_exit_event" )
109109endfunction
110- function ! nvim_ghost#helper #joboutput_logger (data,type ) abort " {{{1
110+ function ! nvim_ghost#server #joboutput_logger (data,type ) abort " {{{1
111111 if ! g: nvim_ghost_logging_enabled || g: nvim_ghost_super_quiet
112112 return
113113 endif
0 commit comments