Skip to content

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

Open
@IndianBoy42

Description

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 cae4f19
  • 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
      neovim
  • Version [vim --version]

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      `vim.g.neoterm_bracketed_paste = 0` seems to not work with the lua repl · Issue #326 · kassio/neoterm