indeed it toggles
This commit is contained in:
parent
2e478f2742
commit
316b6628db
2 changed files with 3 additions and 3 deletions
|
|
@ -129,7 +129,7 @@ function M.handle_command(opts)
|
|||
if cmd.action == 'interact' then
|
||||
ui.toggle_interactive()
|
||||
elseif cmd.action == 'run' then
|
||||
ui.close_run_panel(cmd.debug)
|
||||
ui.toggle_run_panel(cmd.debug)
|
||||
elseif cmd.action == 'next' then
|
||||
setup.navigate_problem(1, cmd.language)
|
||||
elseif cmd.action == 'prev' then
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function M.toggle_interactive()
|
|||
logger.log(('interactive opened, running %s'):format(binary))
|
||||
end
|
||||
|
||||
function M.close_run_panel(is_debug)
|
||||
function M.toggle_run_panel(is_debug)
|
||||
if state.is_run_panel_active() then
|
||||
if current_diff_layout then
|
||||
current_diff_layout.cleanup()
|
||||
|
|
@ -188,7 +188,7 @@ function M.close_run_panel(is_debug)
|
|||
|
||||
setup_keybindings_for_buffer = function(buf)
|
||||
vim.keymap.set('n', config.run_panel.close_key, function()
|
||||
M.close_run_panel()
|
||||
M.toggle_run_panel()
|
||||
end, { buffer = buf, silent = true })
|
||||
vim.keymap.set('n', config.run_panel.toggle_diff_key, function()
|
||||
local modes = { 'none', 'git', 'vim' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue