Skip to content

Commit 79e36ba

Browse files
committed
Prefer s:GetVar() to get()
Addresses review comment #767 (comment)
1 parent 4c14bd4 commit 79e36ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/LanguageClient.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ function! s:GetVar(...) abort
263263
endfunction
264264

265265
function! s:ShouldUseFloatWindow() abort
266-
return s:FLOAT_WINDOW_AVAILABLE && get(g:, 'LanguageClient_useFloatingHover', 1)
266+
let use = s:GetVar('LanguageClient_useFloatingHover')
267+
return s:FLOAT_WINDOW_AVAILABLE && (use || use is v:null)
267268
endfunction
268269

269270
function! s:CloseFloatingHoverOnCursorMove(win_id, opened) abort

0 commit comments

Comments
 (0)