Skip to content

Commit

Permalink
fix: broken autodownload and autoscroll toggle commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Jun 11, 2024
1 parent 69ec5de commit 6cf5b66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jupynium/lua/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ function Jupynium_download_ipynb_cmd(args)
end

function Jupynium_auto_download_ipynb_toggle()
vim.g.jupynium_autodownload_ipynb = 1 - vim.g.jupynium_auto_download_ipynb
Jupynium_notify.info { "Auto download ipynb is now ", vim.g.jupynium_auto_download_ipynb == 1 and "on" or "off" }
vim.g.jupynium_auto_download_ipynb = not vim.g.jupynium_auto_download_ipynb
Jupynium_notify.info { "Auto download ipynb is now ", vim.g.jupynium_auto_download_ipynb and "on" or "off" }
end

function Jupynium_scroll_up(bufnr)
Expand Down Expand Up @@ -440,8 +440,8 @@ function Jupynium_scroll_down(bufnr)
end

function Jupynium_autoscroll_toggle()
vim.g.jupynium_autoscroll = 1 - vim.g.jupynium_autoscroll
Jupynium_notify.info { "Autoscroll is now ", vim.g.jupynium_autoscroll == 1 and "on" or "off" }
vim.g.jupynium_autoscroll_enable = not vim.g.jupynium_autoscroll_enable
Jupynium_notify.info { "Autoscroll is now ", vim.g.jupynium_autoscroll and "on" or "off" }
end

function Jupynium_clear_selected_cells_outputs(bufnr)
Expand Down

0 comments on commit 6cf5b66

Please sign in to comment.