diff options
author | Maria José Solano <majosolano99@gmail.com> | 2024-08-26 08:37:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 17:37:36 +0200 |
commit | d9ccd828b0d46754b9bcb9b17f47c2a51968db05 (patch) | |
tree | b1f7013e0a1ce34d45ad7b30dff8f311f5d206ed /runtime/lua/vim/lsp/buf.lua | |
parent | 0e394f136fcb030358dbc1e94a0a38a03b4b7dbf (diff) | |
download | rneovim-d9ccd828b0d46754b9bcb9b17f47c2a51968db05.tar.gz rneovim-d9ccd828b0d46754b9bcb9b17f47c2a51968db05.tar.bz2 rneovim-d9ccd828b0d46754b9bcb9b17f47c2a51968db05.zip |
fix(lsp): return call hierarchy item, not the index (#30145)
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
-rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index d7463d74f8..e51727ef13 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -464,7 +464,7 @@ local function pick_call_hierarchy_item(call_hierarchy_items) if choice < 1 or choice > #items then return end - return choice + return call_hierarchy_items[choice] end --- @param method string |