Skip to content

Commit

Permalink
Rename LanguageClient#openHoverInSeparateWindow to LanguageClient#reo…
Browse files Browse the repository at this point in the history
…penHoverInSeparateWindow
  • Loading branch information
rhysd committed Mar 21, 2019
1 parent f40a1c3 commit 18640c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoload/LanguageClient.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ function! LanguageClient#debugInfo(...) abort
return LanguageClient#Call('languageClient/debugInfo', l:params, l:Callback)
endfunction

function! LanguageClient#openHoverInSeparateWindow() abort
function! LanguageClient#reopenHoverInSeparateWindow() abort
let bufnr = s:GetHoverPreviewBufnr()
if bufnr == -1
echo 'No hover found'
Expand Down
4 changes: 2 additions & 2 deletions doc/LanguageClient.txt
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ Signature: LanguageClient#debugInfo(...)

Print out debug info.

*LanguageClient#openHoverInSeparateWindow*
Signature: LanguageClient#openHoverInSeparateWindow()
*LanguageClient#reopenHoverInSeparateWindow*
Signature: LanguageClient#reopenHoverInSeparateWindow()

When a hover is open in floating window, calling this function reopens the
content in a separate preview window. This function is useful when you want to
Expand Down
2 changes: 1 addition & 1 deletion tests/LanguageClient_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def test_textDocument_hover_float_window_reopen_in_preview_window(nvim):
_open_float_window(nvim)

try:
nvim.call("LanguageClient#openHoverInSeparateWindow")
nvim.call("LanguageClient#reopenHoverInSeparateWindow")
preview_buf = next(
b for b in nvim.buffers if b.name.endswith("__LanguageClient__"))

Expand Down

0 comments on commit 18640c2

Please sign in to comment.