Hide nvim.exe window (fix #81)

This commit is contained in:
daa84 2018-03-27 17:47:42 +03:00
parent 5b6afc6804
commit a1f122d19c

View File

@ -100,6 +100,11 @@ pub fn start(
.arg("let g:GtkGuiLoaded = 1")
.stderr(Stdio::inherit());
if cfg!(windows) {
use std::os::windows::process::CommandExt;
cmd.creation_flags(0x08000000); // CREATE_NO_WINDOW
}
if let Ok(runtime_path) = env::var("NVIM_GTK_RUNTIME_PATH") {
cmd.arg("--cmd").arg(
format!("let &rtp.=',{}'", runtime_path),