nvim-python-native

I built an experimental Neovim fork that runs init.py and Python callbacks inside the editor process. The same normal-mode keymap toggles a Markdown task from either init.lua or init.py.

Side-by-side Neovim sessions running the same keymap from Lua and Python

CPython is opt-in at build time. LuaJIT and the existing :python3 provider remain available. The fork generates Python bindings for reading and replacing the current line and supports keymaps, autocommands, and scheduling callbacks on the editor thread.

Source and runnable demo ยท Design and benchmark

Write-ups