neoterm icon indicating copy to clipboard operation
neoterm copied to clipboard

`vim.g.neoterm_bracketed_paste = 0` seems to not work with the lua repl

Open IndianBoy42 opened this issue 4 years ago • 0 comments

Describe the bug When using bracketed paste with lua lines in the lua repl, the bracketing causes lua to misinterpret the line as a binary chunk and will not run correctly

To Reproduce Steps to reproduce the behavior:

  1. Opened a lua repl with :T lua (or let it automatically open in the next step)
  2. Send a command like print("hello") with gxx
  3. See error

Expected behavior It should run the command sent and print "hello"

Screenshots/gifs If applicable, add screenshots/gifs to help explain your problem.

image

> ^[[200~vim.g.neoterm_bracketed_paste = 1^[[201~
stdin: bad binary format (not a binary chunk)

Versions (Issues without this information will take longer to be answered/solved):

  • OS: PopOS 20.10
  • neoterm commit cae4f19aeac40037039e914932da850443b7729f
  • Add all the configuration you have for neoterm
vim.g.neoterm_default_mod = "vertical"
vim.g.neoterm_autoinsert = 1
vim.g.neoterm_autoscroll = 1
vim.g.neoterm_bracketed_paste = 1
vim.g.neoterm_repl_python = { "ipython" }

local remap = vim.api.nvim_set_keymap
-- Use gx{text-object} in normal mode
remap("n", "gx", "<Plug>(neoterm-repl-send)", {})
remap("n", "gxx", "<Plug>(neoterm-repl-send-line)", {})
-- Send selected contents in visual mode.
remap("x", "gx", "<Plug>(neoterm-repl-send)", {})
  • Vim or Neovim
    • [ ] vim
    • [x] neovim
  • Version [vim --version]

Additional context Add any other context about the problem here.

IndianBoy42 avatar Jul 13 '21 07:07 IndianBoy42