local CONFIG = { -- Whether a repl should be discarded or not scratch_repl = true, -- Your repl definitions come here repl_definition = { sh = { -- Can be a table or a function that -- returns a table (see below) command = { "zsh" }, }, python = { command = { "python3" }, -- or { "ipython", "--no-autoindent" } format = require("iron.fts.common").bracketed_paste_python, block_deviders = { "# %%", "#%%" }, }, }, -- set the file type of the newly created repl to ft -- bufnr is the buffer id of the REPL and ft is the filetype of the -- language being used for the REPL. repl_filetype = function(bufnr, ft) return ft -- or return a string name such as the following -- return "iron" end, -- How the repl window will be displayed -- See below for more information repl_open_cmd = require("iron.view").bottom(40), -- repl_open_cmd can also be an array-style table so that multiple -- repl_open_commands can be given. -- When repl_open_cmd is given as a table, the first command given will -- be the command that `IronRepl` initially toggles. -- Moreover, when repl_open_cmd is a table, each key will automatically -- be available as a keymap (see `keymaps` below) with the names -- toggle_repl_with_cmd_1, ..., toggle_repl_with_cmd_k -- For example, -- -- repl_open_cmd = { -- view.split.vertical.rightbelow("%40"), -- cmd_1: open a repl to the right -- view.split.rightbelow("%25") -- cmd_2: open a repl below -- } } return CONFIG