aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-07-10 19:38:15 +0800
committerGitHub <noreply@github.com>2023-07-10 04:38:15 -0700
commit766f4978d6cb146511cf0b676c01e5327db46647 (patch)
tree84fddf19619077a9e8fcf8bab33dbedbe08d0fad /runtime/lua/vim/lsp/handlers.lua
parentfbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (diff)
downloadrneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.gz
rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.bz2
rneovim-766f4978d6cb146511cf0b676c01e5327db46647.zip
fix(lint): lint warnings #24226
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r--runtime/lua/vim/lsp/handlers.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua
index 70781cb7a6..20c4d7458b 100644
--- a/runtime/lua/vim/lsp/handlers.lua
+++ b/runtime/lua/vim/lsp/handlers.lua
@@ -382,7 +382,7 @@ M['textDocument/hover'] = M.hover
---@private
--- Jumps to a location. Used as a handler for multiple LSP methods.
----@param _ (not used)
+---@param _ nil not used
---@param result (table) result of LSP method; a location or a list of locations.
---@param ctx (table) table containing the context of the request, including the method
---(`textDocument/definition` can return `Location` or `Location[]`
@@ -496,8 +496,9 @@ end
--- Displays call hierarchy in the quickfix window.
---
---@param direction `"from"` for incoming calls and `"to"` for outgoing calls
----@returns `CallHierarchyIncomingCall[]` if {direction} is `"from"`,
----@returns `CallHierarchyOutgoingCall[]` if {direction} is `"to"`,
+---@return function
+--- `CallHierarchyIncomingCall[]` if {direction} is `"from"`,
+--- `CallHierarchyOutgoingCall[]` if {direction} is `"to"`,
local make_call_hierarchy_handler = function(direction)
return function(_, result)
if not result then