neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 34c769dd897d94ab8876258d21e88351b8231f39
parent 39a5b7f239fb74eae06adbe3995d6bd2c4e230e2
Author: Maria José Solano <majosolano99@gmail.com>
Date:   Fri,  2 May 2025 14:30:02 -0500

fix(lsp): use `bufnr` when getting clients in `symbols_to_items` (#33760)


Diffstat:
Mruntime/lua/vim/lsp/util.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua @@ -1796,7 +1796,7 @@ function M.symbols_to_items(symbols, bufnr, position_encoding) 'symbols_to_items must be called with valid position encoding', vim.log.levels.WARN ) - position_encoding = vim.lsp.get_clients({ bufnr = 0 })[1].offset_encoding + position_encoding = vim.lsp.get_clients({ bufnr = bufnr })[1].offset_encoding end local items = {} --- @type vim.quickfix.entry[]