Describe the bug
An error attempt to call field '_get_line_byte_from_position' (a nil value) occurs in places where the lsp.util._get_line_byte_from_position function is used, such as :Lspsaga peek_definition.
This is because the _get_line_byte_from_position function has been removed from Neovim. It should use vim.pos instead.
neovim/neovim@a7f09db
Steps to reproduce
- use Neovim head
:Lspsaga peek_definition
Expected behavior
No error should occur
Neovim version (nvim -v)
NVIM v0.13.0-dev-576+g71c72c3409
lspsaga commit
3e33a6a
Terminal name/version
wezterm
Describe the bug
An error
attempt to call field '_get_line_byte_from_position' (a nil value)occurs in places where thelsp.util._get_line_byte_from_positionfunction is used, such as:Lspsaga peek_definition.This is because the
_get_line_byte_from_positionfunction has been removed from Neovim. It should usevim.posinstead.neovim/neovim@a7f09db
Steps to reproduce
:Lspsaga peek_definitionExpected behavior
No error should occur
Neovim version (nvim -v)
NVIM v0.13.0-dev-576+g71c72c3409
lspsaga commit
3e33a6a
Terminal name/version
wezterm