Closed onlycalm closed 3 years ago
This is an expected behavior. Try let g:cursorword_delay = 0
.
Thank you, the above method is useful(let g:cursorword_delay = 0), but I observed another exception. The highlight of some words will be invalid after flashing once.
I don't see what's wrong in your screenshot.
Sorry, I didn't express the question clearly. This is a test in vs. When the cursor is over the variable temp, it should remain highlighted.
Well, I mean. In the video, the highlight of the temp variable flashes only once, and then it goes out.
Everything is working well for me and I can't reproduce your issue. Describe the detailed steps, minimal vimrc (less than 30 lines) to reproduce the problem, with OS, Vim versions.
Maybe there is a conflict with the highlight of other plug-ins. When I get home, I will try to turn off other plug-ins to find out where the conflict is. I'll come back here later. Thank you!
Hi. I checked the configuration There is a conflict with the configuration of coc.nvim. I commented the following code and it works normally.
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
This is a good plug-in. When I use it, I find that the highlight flickers in the following two cases:
Here is my configuration:
I try to g:cursorword_delay = 10, but the flicker is still visible.
https://user-images.githubusercontent.com/48640489/120916596-10641a80-c6dd-11eb-9712-6887a67f4a19.mp4