Looking at the documentation, having l as a type for vim.fn.getregionpos may not be correct. See link to docs below. Have tried having v or V as the type and while repl_run will work, it requires me to select the entire line in visual mode to send a command to the REPL. Not well versed enough in neovims inner workings to figure out why but seemed like something you should be aware of.
Link: https://neovim.io/doc/user/vimfn/#getregtype()
Looking at the documentation, having l as a type for vim.fn.getregionpos may not be correct. See link to docs below. Have tried having v or V as the type and while repl_run will work, it requires me to select the entire line in visual mode to send a command to the REPL. Not well versed enough in neovims inner workings to figure out why but seemed like something you should be aware of.
Link: https://neovim.io/doc/user/vimfn/#getregtype()