startup: wait for embedder before executing startup commands and files

Give embeders a chance to set up nvim, by processing a request before
startup. This allows an external UI to show messages and prompts from
--cmd and buffer loading (e.g. swap files)
This commit is contained in:
Björn Linse
2018-07-18 13:31:23 +02:00
parent 32ad52ae04
commit bd8d43c6fe
7 changed files with 134 additions and 5 deletions

View File

@@ -362,6 +362,8 @@ local function clear(...)
table.insert(args, arg)
end
set_session(spawn(args, nil, env))
-- Dummy request so that --embed continues past UI initialization
session:request('nvim_eval', "0")
end
local function insert(...)