fn spawn_child_nvim_process(opt: &Options, nvim_listen_addr: &str) -> process::Child {
        let nvim_args = {
            let mut a = String::new();
            a.push_str("--cmd 'set shortmess+=I' ");
            a.push_str("--listen ");
            a.push_str(nvim_listen_addr);
            if let Some(config) = opt.config.clone().or_else(default_config_path) {
                a.push(' ');
                a.push_str("-u ");
                a.push_str(&config);
            }
            if let Some(custom_args) = opt.arguments.as_ref() {
                a.push(' ');
                a.push_str(custom_args);
            }
            shell_words::split(&a).expect("Cannot parse neovim arguments")
        };
        log::trace!(target: "new neovim process", "Args: {:?}", nvim_args);
        process::Command::new("nvim").args(&nvim_args)
            .stdin(process::Stdio::null())
            .spawn()
            .expect("Cannot spawn a child neovim process")
    }
/// Spawns child neovim process on top of page, which further will be connected to page with UNIX socket.
/// In this way neovim UI is displayed properly on top of page, and page as well is able to handle
/// its own input to redirect it unto proper target (which is impossible with methods provided by neovim_lib).
/// Also custom neovim config will be picked if it exists on corresponding locations.
Spawns child neovim process on top of page, which further will be connected to page with UNIX socket.
In this way neovim UI is displayed properly on top of page, and page as well is able to handle
its own input to redirect it unto proper target (which is impossible with methods provided by neovim_lib).
Also custom neovim config will be picked if it exists on corresponding locations.
Spawns child neovim process on top of page which further will be connected to page with UNIX socket . In this way neovim UI is displayed properly on top of page and page as well is able to handle its own input to redirect it unto proper target ( which is impossible with methods provided by neovim_lib ) . Also custom neovim config will be picked if it exists on corresponding locations .
fn spawn_child_nvim_process(opt: &Options, nvim_listen_addr: &str) -> process::Child {
        let nvim_args = {
            let mut a = String::new();
            a.push_str("--cmd 'set shortmess+=I' ");
            a.push_str("--listen ");
            a.push_str(nvim_listen_addr);
            if let Some(config) = opt.config.clone().or_else(default_config_path) {
                a.push(' ');
                a.push_str("-u ");
                a.push_str(&config);
            }
            if let Some(custom_args) = opt.arguments.as_ref() {
                a.push(' ');
                a.push_str(custom_args);
            }
            shell_words::split(&a).expect("Cannot parse neovim arguments")
        };
        log::trace!(target: "new neovim process", "Args: {:?}", nvim_args);
        process::Command::new("nvim").args(&nvim_args)
            .stdin(process::Stdio::null())
            .spawn()
            .expect("Cannot spawn a child neovim process")
    }
fn spawn_child_nvim_process ( opt : & Options , nvim_listen_addr : & str ) -> process :: Child { let nvim_args = { let mut a = String :: new ( ) ; a . push_str ( " " ) ; a . push_str ( " " ) ; a . push_str ( nvim_listen_addr ) ; if let Some ( config ) = opt . config . clone ( ) . or_else ( default_config_path ) { a . push ( ' ' ) ; a . push_str ( " " ) ; a . push_str ( & config ) ; } if let Some ( custom_args ) = opt . arguments . as_ref ( ) { a . push ( ' ' ) ; a . push_str ( custom_args ) ; } shell_words :: split ( & a ) . expect ( " " ) } ; log :: trace ! ( target " " " " nvim_args ) ; process :: Command :: new ( " " ) . args ( & nvim_args ) . stdin ( process :: Stdio :: null ( ) ) . spawn ( ) . expect ( " " ) }
Spawns child neovim process on top of page, which further will be connected to page with UNIX socket.
Spawns child neovim process on top of page which further will be connected to page with UNIX socket .
opt
&Options
nvim_listen_addr
&str
opt
&Options
nvim_listen_addr
&str