-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement hover window with floating window for Neovim 0.4.0 or lat…
…er (#767) * Reimplement hover window with floating window for Neovim 0.4.0 or later * Add test for hover window using floating window * Close floating window when entering other window on WinEnter * Add test for closing floating window on WinEnter * Fix checking enough space for floating window * Use BufEnter instead of WinEnter since WinEnter cannot close floating hover when the current buffer switches to another buffer within the same window. * Add test where entering another buffer closes floating hover * Follow the API change of nvim_open_win() Note: the API was changed at neovim/neovim@96edbe7 * Move cursor into floating hover when hover is already open * Add health check for floating window * Describe the behavior of floating window support in document * Add g:LanguageClient_useFloatingHover * Add test for moving the cursor into floating window * Add LanguageClient#openHoverInSeparateWindow() to reopen floating hover in separate preview window * Rename LanguageClient#openHoverInSeparateWindow to LanguageClient#reopenHoverInSeparateWindow * Give left margin only when line is not empty * Revert "Add LanguageClient#reopenHoverInSeparateWindow()" This reverts commit 18640c2. This reverts commit f40a1c3. * Prefer s:GetVar() to get() Addresses review comment #767 (comment) * Move description of float window behavior to function doc section Addresses review comments #767 (comment)
- Loading branch information
Showing
5 changed files
with
304 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters