From 51440c1371218eccee23b31403c4bf598d7c1ebe Mon Sep 17 00:00:00 2001 From: Florian Teich Date: Mon, 24 Nov 2025 20:45:57 +0100 Subject: [PATCH] update iron --- lua/kickstart/plugins/iron.lua | 38 +++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/lua/kickstart/plugins/iron.lua b/lua/kickstart/plugins/iron.lua index ba2d75ac..71ab485d 100644 --- a/lua/kickstart/plugins/iron.lua +++ b/lua/kickstart/plugins/iron.lua @@ -10,6 +10,8 @@ return { scratch_repl = true, -- How the repl window will be displayed repl_open_cmd = view.bottom(40), + -- Send selections to the DAP repl if an nvim-dap session is running. + dap_integration = true, -- Choose your preferred REPL for each language: repl_definition = { sh = { @@ -18,23 +20,35 @@ return { python = { command = {"python3"}, format = common.bracketed_paste_python, + block_dividers = { "# %%", "#%%" }, + env = {PYTHON_BASIC_REPL = "1"} }, }, }, 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", + toggle_repl = "rr", -- toggles the repl open and closed. + -- If repl_open_command is a table as above, then the following keymaps are + -- available + -- toggle_repl_with_cmd_1 = "rv", + -- toggle_repl_with_cmd_2 = "rh", + restart_repl = "rR", -- calls `IronRestart` to restart the repl + send_motion = "sc", + visual_send = "sc", + send_file = "sf", + send_line = "sl", + send_paragraph = "sp", + send_until_cursor = "su", + send_mark = "sm", + send_code_block = "sb", + send_code_block_and_move = "sn", + mark_motion = "mc", + mark_visual = "mc", + remove_mark = "md", + cr = "s", + interrupt = "s", + exit = "sq", + clear = "cl", }, highlight = { italic = true },