-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YCM hover popup causes NERDTree pane to misbehave #384
Comments
@josephpei Thanks for opening this issue. I was going to do that as well. I'm having the same problem. Please see original issue I opened in YCM repo (linked in @josephpei's comment above). It seems that the issue is coming from vim-devicons and not from YCM. |
The issue occurs do to the use of Steps to reproduce, as this issue doesn't have any:
actual result: the NERDTree window scrolls unexpectedly when the popup is shown. " Load nerdtree and vim-devicons (only)
let wd = expand( '<sfile>:p:h' )
let nerd = wd . '/nerdtree'
let icons = wd . '/vim-devicons'
let &rtp .= ',' . nerd . ',' . icons
filetype plugin indent on
syn on
let s:p = -1
let s:t = -1
function! s:Callback( ... )
call popup_hide( s:p )
let s:p = popup_atcursor( [ 'test' ], {
\ 'fixed': 0,
\ 'close': 'click',
\ 'moved': 'word'
\ } )
call setbufvar( winbufnr( s:p ), '&syntax', 'cpp' )
endfunction
function! s:DoAPopup() abort
call timer_stop( s:t )
let s:t = timer_start( 250, function( 's:Callback' ) )
endfunction
augroup TEST
autocmd! * <buffer>
autocmd CursorHold <buffer> call s:DoAPopup()
augroup END NOTE if removing the |
incidentally, changing |
I am having the same issue with CoC hover popups as well. Any updates on this issue? |
ubuntu 20.04, vim 8.1, nerdtree, vim-devicons, ycm + clangd
ycm-core/YouCompleteMe#3848
https://user-images.githubusercontent.com/14184522/107708879-de403000-6c89-11eb-9dbe-c7bd7e3d5a0e.mov
If disable vim-devicons, everything is normal.
If enable vim-devicons, when the cursor in nerdtree window on the top line, behavere is normal.
When the cursor in nerdtree window on other line, then back to code window, when ycm hover popup window shows, nerdtree window will only display lines below the old cursor.
The text was updated successfully, but these errors were encountered: