Skip to content

Commit

Permalink
Enable bracketed paste mode when sending lines to the repl
Browse files Browse the repository at this point in the history
  • Loading branch information
Odie committed Jul 14, 2024
1 parent e6b78ec commit 66abecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/iron/lowlevel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ ll.send_to_repl = function(meta, data)

--TODO check vim.api.nvim_chan_send
--TODO tool to get the progress of the chan send function
vim.fn.chansend(meta.job, "\x1b[200~")
vim.fn.chansend(meta.job, dt)
vim.fn.chansend(meta.job, "\x1b[201~")

if window ~= -1 then
vim.api.nvim_win_set_cursor(window, {vim.api.nvim_buf_line_count(meta.bufnr), 0})
Expand Down

0 comments on commit 66abecd

Please sign in to comment.