return { "Vigemus/iron.nvim", config = function() local iron = require("iron.core") local view = require("iron.view") local common = require("iron.fts.common") iron.setup({ config = { scratch_repl = true, -- How the repl window will be displayed repl_open_cmd = view.bottom(40), -- Choose your preferred REPL for each language: repl_definition = { sh = { command = {"zsh"} }, python = { command = {"python3"}, format = common.bracketed_paste_python, }, }, }, keymaps = { send_motion = "rs", visual_send = "rs", send_file = "rf", send_line = "rl", send_mark = "rm", mark_motion = "rm", mark_visual = "rm", remove_mark = "rd", cr = "r", interrupt = "r", exit = "rq", clear = "rc", }, highlight = { italic = true }, ignore_blank_lines = true, }) -- Optional: automatically open the REPL on first send vim.keymap.set("n", "ro", function() local ft = vim.bo.filetype require("iron.core").repl_for(ft) require("iron.core").focus_on(ft) end) end, }