mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
docs: mark tagfunc.lua methods as private
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local lsp = vim.lsp
|
||||
local util = vim.lsp.util
|
||||
|
||||
---@private
|
||||
local function mk_tag_item(name, range, uri, offset_encoding)
|
||||
local bufnr = vim.uri_to_bufnr(uri)
|
||||
-- This is get_line_byte_from_position is 0-indexed, call cursor expects a 1-indexed position
|
||||
@@ -12,6 +13,7 @@ local function mk_tag_item(name, range, uri, offset_encoding)
|
||||
}
|
||||
end
|
||||
|
||||
---@private
|
||||
local function query_definition(pattern)
|
||||
local params = lsp.util.make_position_params()
|
||||
local results_by_client, err = lsp.buf_request_sync(0, 'textDocument/definition', params, 1000)
|
||||
@@ -40,6 +42,7 @@ local function query_definition(pattern)
|
||||
return results
|
||||
end
|
||||
|
||||
---@private
|
||||
local function query_workspace_symbols(pattern)
|
||||
local results_by_client, err = lsp.buf_request_sync(0, 'workspace/symbol', { query = pattern }, 1000)
|
||||
if err then
|
||||
@@ -58,6 +61,7 @@ local function query_workspace_symbols(pattern)
|
||||
return results
|
||||
end
|
||||
|
||||
---@private
|
||||
local function tagfunc(pattern, flags)
|
||||
local matches
|
||||
if string.match(flags, 'c') then
|
||||
|
||||
Reference in New Issue
Block a user