mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
Compare commits
2 Commits
96cbf57105
...
9ac8bc8e8d
Author | SHA1 | Date | |
---|---|---|---|
|
9ac8bc8e8d | ||
|
e791723d5b |
@ -1397,7 +1397,10 @@ format({opts}) *vim.lsp.buf.format()*
|
|||||||
|
|
||||||
hover() *vim.lsp.buf.hover()*
|
hover() *vim.lsp.buf.hover()*
|
||||||
Displays hover information about the symbol under the cursor in a floating
|
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. Once focused in the floating
|
||||||
|
window, the buffer content can be scrolled as usual and `q` can be used to
|
||||||
|
dismiss the window.
|
||||||
|
|
||||||
implementation({opts}) *vim.lsp.buf.implementation()*
|
implementation({opts}) *vim.lsp.buf.implementation()*
|
||||||
Lists all the implementations for the symbol under the cursor in the
|
Lists all the implementations for the symbol under the cursor in the
|
||||||
|
@ -29,7 +29,10 @@ local function request(method, params, handler)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Displays hover information about the symbol under the cursor in a floating
|
--- 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.
|
||||||
|
--- Once focused in the floating window, the buffer content can be scrolled as usual
|
||||||
|
--- and `q` can be used to dismiss the window.
|
||||||
function M.hover()
|
function M.hover()
|
||||||
local params = util.make_position_params()
|
local params = util.make_position_params()
|
||||||
request(ms.textDocument_hover, params)
|
request(ms.textDocument_hover, params)
|
||||||
|
Loading…
Reference in New Issue
Block a user