Merge pull request #659 from 4513ECHO/fix/neovim-floatwin

fix: Make not to skip floatwin if it is focusable
This commit is contained in:
itchyny
2023-09-03 19:09:07 +09:00
committed by GitHub

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