liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.9k stars 87 forks source link

Howto eliminate flicker? #216

Closed tmpm697 closed 4 years ago

tmpm697 commented 4 years ago

Describe the bug Vim uses lazydrawn to renew screen somehow that cause flick.

Environment:

Vista info

    Current FileType:
Avaliable Executives: ['ctags', 'vim_lsp']
    Global Variables:
    let g:vista#executives = ['ale', 'coc', 'ctags', 'lcn', 'nvim_lsp', 'vim_lsc', 'vim_lsp']
    let g:vista#extensions = ['markdown', 'rst']
    let g:vista#finders = ['fzf', 'skim']

Steps to reproduce given the above info

  1. open a file with tags (from ctags)
  2. move around between tags
  3. observe cursor change from vista when moving cursor between tags
  4. sometimes when you stop cursor at some point, it does flick

Expected behavior Does not have flick

Actual behavior less flicks than tagbar but still flick at some points.

issue-label-bot[bot] commented 4 years ago

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

liuchengxu commented 4 years ago

Not sure what the flicker is.

ranebrown commented 4 years ago

@liuchengxu I'm seeing this same flickering behavior. It occurs on file save or if the TextChanged and TextChangedI events are enabled. Could you please reopen? I can provide more information if needed.

ranebrown commented 4 years ago

It is definitely related to the screen redraw. I am seeing the same thing when switching windows from the vista window back to the main window. The behavior is much less noticeable with a minimal vimrc but still present.

liuchengxu commented 4 years ago

Can't help more with the current report.

tmpm697 commented 4 years ago

Is that possible to have external binay running in background causing this issue? I think ctags binary is running in background and might produce the issue. I observe the same behavior when using linter/fixer from ale.

ranebrown commented 4 years ago

I would definitely like to get this fixed as it is making vista unusable for me but not really sure how to figure out what is causing it... I'm more than happy to do some troubleshooting if you point me in the right direction.

flicker

github-actions[bot] commented 4 years ago

Stale issue message

sealter commented 2 years ago

I have screen flicker problem in vim too.

tmpm697 commented 2 years ago

Either one or more plugins are using/calling binary in background that cause this issue, you can open nvim with each one of them to figure out, or check this if you use tmux.