Skip to content

Commit

Permalink
Merge pull request #659 from 4513ECHO/fix/neovim-floatwin
Browse files Browse the repository at this point in the history
fix: Make not to skip floatwin if it is focusable
  • Loading branch information
itchyny authored Sep 3, 2023
2 parents b1e91b4 + 3d10b50 commit f11645c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/lightline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ function! lightline#update() abort
endif
endfunction

if exists('*win_gettype')
if exists('*nvim_win_get_config')
function! s:skip() abort
return !nvim_win_get_config(0).focusable
endfunction
elseif exists('*win_gettype')
function! s:skip() abort " Vim 8.2.0257 (00f3b4e007), 8.2.0991 (0fe937fd86), 8.2.0996 (40a019f157)
return win_gettype() ==# 'popup' || win_gettype() ==# 'autocmd'
endfunction
Expand Down

0 comments on commit f11645c

Please sign in to comment.