update iron
This commit is contained in:
parent
d7e405283f
commit
51440c1371
|
|
@ -10,6 +10,8 @@ return {
|
||||||
scratch_repl = true,
|
scratch_repl = true,
|
||||||
-- How the repl window will be displayed
|
-- How the repl window will be displayed
|
||||||
repl_open_cmd = view.bottom(40),
|
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:
|
-- Choose your preferred REPL for each language:
|
||||||
repl_definition = {
|
repl_definition = {
|
||||||
sh = {
|
sh = {
|
||||||
|
|
@ -18,23 +20,35 @@ return {
|
||||||
python = {
|
python = {
|
||||||
command = {"python3"},
|
command = {"python3"},
|
||||||
format = common.bracketed_paste_python,
|
format = common.bracketed_paste_python,
|
||||||
|
block_dividers = { "# %%", "#%%" },
|
||||||
|
env = {PYTHON_BASIC_REPL = "1"}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
send_motion = "<leader>rs",
|
toggle_repl = "<space>rr", -- toggles the repl open and closed.
|
||||||
visual_send = "<leader>rs",
|
-- If repl_open_command is a table as above, then the following keymaps are
|
||||||
send_file = "<leader>rf",
|
-- available
|
||||||
send_line = "<leader>rl",
|
-- toggle_repl_with_cmd_1 = "<space>rv",
|
||||||
send_mark = "<leader>rm",
|
-- toggle_repl_with_cmd_2 = "<space>rh",
|
||||||
mark_motion = "<leader>rm",
|
restart_repl = "<space>rR", -- calls `IronRestart` to restart the repl
|
||||||
mark_visual = "<leader>rm",
|
send_motion = "<space>sc",
|
||||||
remove_mark = "<leader>rd",
|
visual_send = "<space>sc",
|
||||||
cr = "<leader>r<cr>",
|
send_file = "<space>sf",
|
||||||
interrupt = "<leader>r<space>",
|
send_line = "<space>sl",
|
||||||
exit = "<leader>rq",
|
send_paragraph = "<space>sp",
|
||||||
clear = "<leader>rc",
|
send_until_cursor = "<space>su",
|
||||||
|
send_mark = "<space>sm",
|
||||||
|
send_code_block = "<space>sb",
|
||||||
|
send_code_block_and_move = "<space>sn",
|
||||||
|
mark_motion = "<space>mc",
|
||||||
|
mark_visual = "<space>mc",
|
||||||
|
remove_mark = "<space>md",
|
||||||
|
cr = "<space>s<cr>",
|
||||||
|
interrupt = "<space>s<space>",
|
||||||
|
exit = "<space>sq",
|
||||||
|
clear = "<space>cl",
|
||||||
},
|
},
|
||||||
|
|
||||||
highlight = { italic = true },
|
highlight = { italic = true },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue