Closed borisbrodski closed 1 year ago
This is actually not what is happening. The cursor never moves, they "simulate" the cursor moving with highlight groups. This is just a side effect of AstroTheme not having support for lightspeed
. I will transfer this to AstroTheme and reword the title to actually be a feature request on AstroTheme.
If you are curious, installing any lightspeed enabled theme will resolve the issue.
We do have support for lightspeed, so let me do some tests and see what is happening. It may need some refactoring.
Without lightspeed highlight groups, it makes the plugin look like it's not working. Mainly because the plugin doesn't actually move the cursor while the search is happening, but uses highlight groups to make it look like the cursor is moving. We should get lightspeed highlight groups added to AstroTheme. ~ @mehalter
ORIGINAL ASTRONVIM BUG REPORT
Checklist
:AstroUpdate
Operating system/version
Windows
Terminal/GUI
neovide, conemu, windows native
AstroNvim Health
astronvim: require("astronvim.health").check()
AstroNvim
git
is installed: Used for core functionality such as updater and plugin managementexplorer
is installed: Used forgx
mapping for opening files with system opener (Optional)lazygit
is not installed: Used for mappings to pull up git TUI (Optional)node
is installed: Used for mappings to pull up node REPL (Optional)gdu
is not installed: Used for mappings to pull up disk usage analyzer (Optional)btm
is not installed: Used for mappings to pull up system monitor (Optional)python
is installed: Used for mappings to pull up python REPL (Optional)Describe the bug
The cursor (and sometimes a part of the screen) doesn't get updated, when it should. Only after a subsequent keystroke the cursor jumps into place.
This is most notacable and disturbing, when using lightspeed or leap to jump. See reproduce section.
Steps to Reproduce
The bug is spotted at least in leap/lightspeed/fugitive plugins. It's always a missing refresh or redraw event.
The easiest to reproduce is with lightspeed:
%HOMEPATH%\AppData\Local\nvim\lua\user\init.lua
withtest123 test123
▋ test123 test123
▋ test123 test123s
test|123 test123
test▋23 test123