Skip to content

Commit 1fbc9a5

Browse files
committed
Update docstrings where needed
1 parent ba88918 commit 1fbc9a5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lua/pyrepl/init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ function M.convert_to_python()
3737
jupytext.convert_to_python(0)
3838
end
3939

40+
---Feed command to install packages with given tool in command line.
4041
---@param tool string
4142
function M.install_packages(tool)
4243
python.install_packages(tool)
4344
end
4445

46+
---Change mode to normal and send last visual range to REPL.
4547
function M.send_visual()
4648
local chan = core.get_chan()
4749
if chan then
48-
-- update visual selection marks
50+
-- update visual selection marks by changing mode to normal
4951
vim.api.nvim_feedkeys(
5052
vim.api.nvim_replace_termcodes("<Esc>", true, false, true),
5153
"n",
@@ -89,7 +91,7 @@ end
8991
function M.setup(opts)
9092
config.update_state(opts)
9193

92-
-- define commands
94+
-- define plugin commands
9395
vim.api.nvim_create_user_command("PyreplOpen", function()
9496
M.open_repl()
9597
end, { nargs = 0 })

0 commit comments

Comments
 (0)