mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
refactor(lsp): drop str_byteindex/str_utfindex wrappers #30915
* deprecate old signatures * move to new str_byteindex/str_utfindex signature * use single-underscore name (double-underscore is reserved for Lua itself)
This commit is contained in:
@@ -1049,7 +1049,7 @@ function lsp.formatexpr(opts)
|
||||
if client.supports_method(ms.textDocument_rangeFormatting) then
|
||||
local params = util.make_formatting_params()
|
||||
local end_line = vim.fn.getline(end_lnum) --[[@as string]]
|
||||
local end_col = util._str_utfindex_enc(end_line, nil, client.offset_encoding)
|
||||
local end_col = vim.str_utfindex(end_line, client.offset_encoding)
|
||||
--- @cast params +lsp.DocumentRangeFormattingParams
|
||||
params.range = {
|
||||
start = {
|
||||
|
Reference in New Issue
Block a user