Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lsp.references):
include_current_line
option regression (#3091)
* Fix jump regression in LSP references action handler This change restores the possibility to exclude the current line when invoking the lsp_references picker. - opts.include_current_line is by default unset, so the previous equality check would fail unless the option was set explicitly. - vim.api.nvim_win_get_cursor() returns both line and column, so it can't be directly compared with the returned line number. - The actual comparison was expecting quickfix-like items, when in actuality, we were dealing with raw LSP location objects. * lsp: Pass offset_encoding to action_handlers * LSP: Action handlers take both locations and items * LSP: Rename (flattened_)results → locations * LSP: Early return in list_or_jump
- Loading branch information