Closed smjonas closed 3 months ago
Update: the aim of this PR was to separate the python code into separate files for easier debugging / LSP support. The presumed blocker of this PR has been resolved in the issue linked above:
x=1 here has a local scope, so there is no way for external expressions (py3eval) to look at the local variable. This is as designed and you should therefore use a global (or nonlocal) variable.
Anyone who wants to finish this PR is greatly encouraged to do so :)
Superseded by #93.
I really want to move Python related code into their own files, unfortunately this doesn't work yet at the moment. I get the following error:
I did not change anything in the code but somehow the local variable
snippet
is not available withinpy3eval
anymore. I created an issue on the pynvim repo here: https://github.com/neovim/pynvim/issues/501@pianohacker Since you helped us last time with the
pyxeval
code and submitted a PR, do you have any idea what the problem might be here? Why does this code only work when used inside a vimscript function?