mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
fix: resolve all remaining LuaLS diagnostics
This commit is contained in:

committed by
Lewis Russell

parent
83479b95ab
commit
6aa42e8f92
@@ -139,7 +139,7 @@ local function tokens_to_ranges(data, bufnr, client, request)
|
||||
|
||||
if token_type then
|
||||
local modifiers = modifiers_from_number(data[i + 4], token_modifiers)
|
||||
local end_char = start_char + data[i + 2]
|
||||
local end_char = start_char + data[i + 2] --- @type integer LuaLS bug
|
||||
local buf_line = lines and lines[line + 1] or ''
|
||||
local start_col = vim.str_byteindex(buf_line, encoding, start_char, false)
|
||||
local end_col = vim.str_byteindex(buf_line, encoding, end_char, false)
|
||||
|
Reference in New Issue
Block a user