mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
docs(lsp): hover window controls #30347
This commit is contained in:
@@ -29,7 +29,12 @@ local function request(method, params, handler)
|
||||
end
|
||||
|
||||
--- Displays hover information about the symbol under the cursor in a floating
|
||||
--- window. Calling the function twice will jump into the floating window.
|
||||
--- window. The window will be dismissed on cursor move.
|
||||
--- Calling the function twice will jump into the floating window
|
||||
--- (thus by default, "KK" will open the hover window and focus it).
|
||||
--- In the floating window, all commands and mappings are available as usual,
|
||||
--- except that "q" dismisses the window.
|
||||
--- You can scroll the contents the same as you would any other buffer.
|
||||
function M.hover()
|
||||
local params = util.make_position_params()
|
||||
request(ms.textDocument_hover, params)
|
||||
|
Reference in New Issue
Block a user