mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
feat(lsp): option to reuse_win for jump actions (#18577)
This commit is contained in:
@@ -1051,15 +1051,25 @@ completion({context}) *vim.lsp.buf.completion()*
|
||||
See also: ~
|
||||
|vim.lsp.protocol.constants.CompletionTriggerKind|
|
||||
|
||||
declaration() *vim.lsp.buf.declaration()*
|
||||
declaration({options}) *vim.lsp.buf.declaration()*
|
||||
Jumps to the declaration of the symbol under the cursor.
|
||||
Note:
|
||||
Many servers do not implement this method. Generally, see
|
||||
|vim.lsp.buf.definition()| instead.
|
||||
|
||||
definition() *vim.lsp.buf.definition()*
|
||||
Parameters: ~
|
||||
{options} (table|nil) additional options
|
||||
• reuse_win: (boolean) Jump to existing window
|
||||
if buffer is already open.
|
||||
|
||||
definition({options}) *vim.lsp.buf.definition()*
|
||||
Jumps to the definition of the symbol under the cursor.
|
||||
|
||||
Parameters: ~
|
||||
{options} (table|nil) additional options
|
||||
• reuse_win: (boolean) Jump to existing window
|
||||
if buffer is already open.
|
||||
|
||||
document_highlight() *vim.lsp.buf.document_highlight()*
|
||||
Send request to the server to resolve document highlights for
|
||||
the current text document position. This request can be
|
||||
@@ -1286,10 +1296,15 @@ signature_help() *vim.lsp.buf.signature_help()*
|
||||
Displays signature information about the symbol under the
|
||||
cursor in a floating window.
|
||||
|
||||
type_definition() *vim.lsp.buf.type_definition()*
|
||||
type_definition({options}) *vim.lsp.buf.type_definition()*
|
||||
Jumps to the definition of the type of the symbol under the
|
||||
cursor.
|
||||
|
||||
Parameters: ~
|
||||
{options} (table|nil) additional options
|
||||
• reuse_win: (boolean) Jump to existing window
|
||||
if buffer is already open.
|
||||
|
||||
workspace_symbol({query}) *vim.lsp.buf.workspace_symbol()*
|
||||
Lists all symbols in the current workspace in the quickfix
|
||||
window.
|
||||
@@ -1575,12 +1590,14 @@ get_effective_tabstop({bufnr}) *vim.lsp.util.get_effective_tabstop()*
|
||||
|shiftwidth|
|
||||
|
||||
*vim.lsp.util.jump_to_location()*
|
||||
jump_to_location({location}, {offset_encoding})
|
||||
jump_to_location({location}, {offset_encoding}, {reuse_win})
|
||||
Jumps to a location.
|
||||
|
||||
Parameters: ~
|
||||
{location} (table) (`Location`|`LocationLink`)
|
||||
{offset_encoding} (string) utf-8|utf-16|utf-32 (required)
|
||||
{reuse_win} (boolean) Jump to existing window if
|
||||
buffer is already opened.
|
||||
|
||||
Return: ~
|
||||
`true` if the jump succeeded
|
||||
|
Reference in New Issue
Block a user