fix: Make not to skip floatwin if it is focusable

This commit is contained in:
4513ECHO
2023-08-26 19:35:15 +09:00
parent b1e91b41f5
commit 3d10b50dec

View File

@@ -26,7 +26,11 @@ function! lightline#update() abort
endif endif
endfunction 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) function! s:skip() abort " Vim 8.2.0257 (00f3b4e007), 8.2.0991 (0fe937fd86), 8.2.0996 (40a019f157)
return win_gettype() ==# 'popup' || win_gettype() ==# 'autocmd' return win_gettype() ==# 'popup' || win_gettype() ==# 'autocmd'
endfunction endfunction