diff options
author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2023-10-31 14:18:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 13:18:44 +0100 |
commit | adbe7f368397da21465f27181e254dd3694820e9 (patch) | |
tree | e57b7448ff156a3a0a9a3a12d31ce9605c7bbd8e /src/nvim/lua/stdlib.c | |
parent | c1a93285d25be8c832eceecc440e6128b773dc01 (diff) | |
download | rneovim-adbe7f368397da21465f27181e254dd3694820e9.tar.gz rneovim-adbe7f368397da21465f27181e254dd3694820e9.tar.bz2 rneovim-adbe7f368397da21465f27181e254dd3694820e9.zip |
fix(lsp): call `on_list()` even for single location (#25830)
Problem: Currently there is no way of customizing behavior of
`declaration`, `definition`, `typeDefinition`, and `implementation`
methods in `vim.lsp.buf` when LSP server returns `Location`. Instead,
cursor jumps to that location directly.
Solution: Normalize LSP response to be `Location[]` for those four cases.
Diffstat (limited to 'src/nvim/lua/stdlib.c')
0 files changed, 0 insertions, 0 deletions