aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2025-07-13 08:55:58 +0900
committerGitHub <noreply@github.com>2025-07-12 16:55:58 -0700
commit4778a4c201793141329cf58bb52a6fcc1d9c9eb1 (patch)
treef72692028d4f5adf260630f9b4cb0e045c3e54f2 /runtime/lua/vim/_editor.lua
parent815916b45005da04838ceee749cec875ddad0f1a (diff)
downloadrneovim-4778a4c201793141329cf58bb52a6fcc1d9c9eb1.tar.gz
rneovim-4778a4c201793141329cf58bb52a6fcc1d9c9eb1.tar.bz2
rneovim-4778a4c201793141329cf58bb52a6fcc1d9c9eb1.zip
fix(lsp): prevent flicker in codelens virtual text #34888
Problem: Calling lsp.codelens.refresh() causes transient visual flicker because codelens virtual texts are briefly replaced with "Unresolved lens ..." before being resolved and redrawn. Since refresh() is triggered frequently (e.g., on CursorHold or InsertLeave), this leads to redundant and noisy virtual text updates, even when the final text hasn't changed. Solution: Do not update virtual text for a line if some lenses for that line are not resolved yet. A trade-off is that the user may temporarily see outdated virtual text. However, that's preferable to spamming updates on every refresh.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions