Open xllvrr opened 2 years ago
Same problem.
Hey, I think this comes from a recent change in the view API. You can check the new way of sizing REPL at the end of the doc https://github.com/hkupty/iron.nvim#repl-windows. So basically replace those lines
repl_open_cmd = require("iron.view").curry.right(function()
return math.ceil(vim.o.columns / 2)
end),`
Just came back to this as I've been rather busy with other stuff and so just disabled this for the time being but I have tried both
repl_open_cmd = view.split(.5)
and
repl_open_cmd = view.split("50%")
as replacement methods as per the wiki and both of them generate the same error
Error detected while processing /home/xllvr/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/xllvr/.config/nvim/lua/plugin/iron
.lua:26: attempt to call field 'split' (a nil value)
stack traceback:
/home/xllvr/.config/nvim/lua/plugin/iron.lua:26: in main chunk
[C]: in function 'require'
/home/xllvr/.config/nvim/init.lua:13: in main chunk
System: Arch Linux Neovim Version: 0.7.2-3
Expected Behavior: No issues when opening nvim Actual Behavior: When opening nvim I got this error
This seems to be a rather recent change as I didn't seem to have this problem beforehand
Configuration for Iron: