From 605abdf06883fe241d6465b8f1aba2d6753a01a0 Mon Sep 17 00:00:00 2001 From: itchyny Date: Mon, 17 Feb 2020 11:47:33 +0900 Subject: [PATCH] Stop toggling lightline on setting contents of popup --- autoload/lsp/ui/vim/output.vim | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/autoload/lsp/ui/vim/output.vim b/autoload/lsp/ui/vim/output.vim index 59db9ed32..4e08412a6 100644 --- a/autoload/lsp/ui/vim/output.vim +++ b/autoload/lsp/ui/vim/output.vim @@ -149,21 +149,10 @@ function! s:setcontent(lines, ft) abort if s:use_vim_popup " vim popup call setbufline(winbufnr(s:winid), 1, a:lines) - let l:lightline_toggle = v:false - if exists('#lightline') && !has('nvim') - " Lightline does not work in popups but does not recognize it yet. - " It is ugly to have an check for an other plugin here, better fix lightline... - let l:lightline_toggle = v:true - call lightline#disable() - endif call win_execute(s:winid, 'setlocal filetype=' . a:ft . '.lsp-hover') - if l:lightline_toggle - call lightline#enable() - endif else " nvim floating or preview call setline(1, a:lines) - setlocal readonly nomodifiable silent! let &l:filetype = a:ft . '.lsp-hover' endif