Steps Install debugpy pip install debugpy Install pyright pip install pyright Open file nvim --clean -u init.lua sample.py Run repro function :lua repro() Focus repl buffer and hit <CR> (Enter).