toggleterm.nvim
toggleterm.nvim copied to clipboard
[BUG] Cursor jumping issue with editable-term.nvim
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
I'm having an issue where the cursor jumps to the last line in the terminal when doing diw from normal mode when using editable-term.nvim.
According to the author this is an issue with toggleterm.nvim, and not editable-term.nvim.
Expected Behavior
Cursor stays on the same line efter doing diw.
Steps To Reproduce
Minimal config:
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{ "akinsho/toggleterm.nvim", version = "*", config = true },
{
"xb-bx/editable-term.nvim",
opts = {
promts = {
["> "] = {}, -- TODO: Input your shell's prompt here
},
},
},
})
nvim -u path/to/config/above -c ToggleTerm- Type
foo - Move to normal mode with
<C-\><C-n> - Press
diw - Cursor jumps to last line in the buffer
Environment
- OS: EndeavourOS
- neovim version: v0.11.0
- Shell: Zsh
Anything else?
No response
I've been experiencing the same issue since this was opened. Have you found any solutions, @mawkler?
Nope, I'm still having the same issue