Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 7461130

Browse files
itchynymattn
authored andcommitted
Stop toggling lightline on setting contents of popup (prabirshrestha#677)
Co-authored-by: mattn <[email protected]>
1 parent 73227ec commit 7461130

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

autoload/lsp/ui/vim/output.vim

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,10 @@ function! s:setcontent(lines, ft) abort
149149
if s:use_vim_popup
150150
" vim popup
151151
call setbufline(winbufnr(s:winid), 1, a:lines)
152-
let l:lightline_toggle = v:false
153-
if exists('#lightline') && !has('nvim')
154-
" Lightline does not work in popups but does not recognize it yet.
155-
" It is ugly to have an check for an other plugin here, better fix lightline...
156-
let l:lightline_toggle = v:true
157-
call lightline#disable()
158-
endif
159152
call win_execute(s:winid, 'setlocal filetype=' . a:ft . '.lsp-hover')
160-
if l:lightline_toggle
161-
call lightline#enable()
162-
endif
163153
else
164154
" nvim floating or preview
165155
call setline(1, a:lines)
166-
167156
setlocal readonly nomodifiable
168157
silent! let &l:filetype = a:ft . '.lsp-hover'
169158
endif

0 commit comments

Comments
 (0)