Cursor jumping after typing
upstream (neovim)
### Neovim version (nvim -v)
NVIM v0.12.0-dev-2727+gad4bc2d90c
### Operating system/version
MacOS 26.0
### Output of :checkhealth haskell-tools
```console
==============================================================================
haskell-tools: 4 ⚠️
Checking for Lua dependencies ~
- ⚠️ WARNING telescope not installed. Required for hoogle search modes "telescope-local" and "telescope-web" [nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
Checking external dependencies ~
- ✅ OK haskell-language-server: found haskell-language-server version: 2.13.0.0 (GHC: 9.10.3) (PATH: /Users/andri/.ghcup/hls/2.13.0.0/lib/haskell-language-server-2.13.0.0/bin/haskell-language-server-wrapper)
- ✅ OK hoogle: found Hoogle 5.0.19.0, https://hoogle.haskell.org/
- ⚠️ WARNING fast-tags: not found.
Install [fast-tags](https://hackage.haskell.org/package/fast-tags) for extended capabilities.
Optional, for generating tags as a `tagfunc` fallback.
- ✅ OK curl: found curl 8.7.1 (x86_64-apple-darwin25.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.66.0
- ⚠️ WARNING haskell-debug-adapter: not found.
Install [haskell-debug-adapter](https://github.com/phoityne/haskell-debug-adapter) for extended capabilities.
Optional, for `dap` support.
- ⚠️ WARNING ghci-dap: not found.
Install [ghci-dap](https://github.com/phoityne/ghci-dap) for extended capabilities.
Optional, for `dap` support.
Checking config ~
- ✅ OK No errors found in config.
Checking for conflicting plugins ~
- ✅ OK No conflicting plugins detected.
```
### How to reproduce the issue
- `nvim test.hs -u repro.lua` (where repro.lua is unmodified minimal config)
- add some text like `add a b = a + b`
- Type `oa`, wait a bit, then type `b`
- See that you have `ba` instead of `ab` (cursor jumped back to be before the `a` after some time
### Expected behaviour
cursor should stay where it was
### Actual behaviour
it doesn't
### Log files
```console
```
### The minimal config used to reproduce this issue.
```Lua
vim.env.LAZY_STDPATH = ".repro"
---@diagnostic disable-next-line: param-type-mismatch
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"mrcjkb/haskell-tools.nvim",
version = "^7",
init = function()
-- Configure haskell-tools.nvim here
vim.g.haskell_tools = {}
end,
dependencies = {
-- Uncomment or add any optional dependencies needed to reproduce the issue
-- 'nvim-telescope/telescope.nvim',
-- 'akinsho/toggleterm.nvim',
},
lazy = false,
},
},
})
-- do anything else you need to do to reproduce the issue
```
关闭于 2026-04-02 3 条评论