|
|
@ -88,12 +88,11 @@ async fn start_neovim_runtime() {
|
|
|
|
|
|
|
|
|
|
|
|
// Verify if the files to open is more than one
|
|
|
|
// Verify if the files to open is more than one
|
|
|
|
if settings.files.len() > 1 {
|
|
|
|
if settings.files.len() > 1 {
|
|
|
|
// Open the first file into a first window
|
|
|
|
|
|
|
|
let first_file = settings.files.first().unwrap();
|
|
|
|
|
|
|
|
nvim.command(format!("e {}", first_file).as_str()).await.unwrap_or_explained_panic("Could not create new tab");
|
|
|
|
|
|
|
|
// Open the rest of the files into new tabs
|
|
|
|
// Open the rest of the files into new tabs
|
|
|
|
for file in settings.files.iter().skip(1) {
|
|
|
|
for file in settings.files.iter().skip(1) {
|
|
|
|
nvim.command(format!("tabnew {}", file).as_str()).await.unwrap_or_explained_panic("Could not create new tab");
|
|
|
|
nvim.command(format!("tabnew {}", file).as_str())
|
|
|
|
|
|
|
|
.await
|
|
|
|
|
|
|
|
.unwrap_or_explained_panic("Could not create new tab");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SETTINGS.read_initial_values(&nvim).await;
|
|
|
|
SETTINGS.read_initial_values(&nvim).await;
|
|
|
|