Format with stylua

This commit is contained in:
hrsh7th
2024-10-20 04:28:33 +00:00
committed by github-actions[bot]
parent 1a1d7ecb73
commit c183f45fab

View File

@@ -65,8 +65,7 @@ lsp.Position = {
return position
end
local ok, byteindex = pcall(vim.str_byteindex,
text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
local ok, byteindex = pcall(vim.str_byteindex, text, position.character, from_encoding == lsp.PositionEncodingKind.UTF16)
if not ok then
return position
end