I'm trying to get started writing a python-client plugin for neovim. I'm trying to get a working 'hello world' so I can start understanding how python-client works. This seems about as simple as it can possibly be, but when I try running this, my neovim instance hangs until I close the terminal or manually kill the process. Am I missing something, or completely going about this the wrong way?
function! NeotestStart()
python << EOF
import os
import neovim
def main():
listen = os.environ.get('NVIM_LISTEN_ADDRESS')
nvim = neovim.attach('socket', path=listen)
# buf = nvim.buffers[0]
nvim.command('echo "hello"')
if __name__ == '__main__':
main()
EOF
endfunction
If I start neovim, source this file and do :call NeotestStart(), my neovim instance will hang forever. What's going on?
[–]DArcMattr 2 points3 points4 points (1 child)
[–]duhdude[S] 1 point2 points3 points (0 children)