Closed AckslD closed 2 years ago
nvim = attach('child', argv=[ "/bin/env", "nvim", "--embed", "--headless", ...
See :help --embed
.
--embed
is for UIs (or clients that want UI events). In that case nvim
waits for nvim_ui_attach()
before continuing, and that means it doesn't run the user config (-u
) nor any other commands until then.
print(nvim.command_output("echo g:mapleader"))
btw, nvim_command_output()
is deprecated, use nvim_exec()
instead.
Just remove --embed
from your start args. Or call nvim_ui_attach
if you want UI events.
I'm trying to use
pynvim
for testing a plugin but I am unable to run a nvim with the configuration I want.Let's say I have the following minimal configuration-file:
Now, consider the following normal execution of nvim:
which as exepcted shows
,
.However, if I run the following
I get
Is this an issue with
pynvim
or am I doing something wrong?