From c183f45faba8a80a7c58219a3600dc3f9e5a53e9 Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Sun, 20 Oct 2024 04:28:33 +0000 Subject: [PATCH] Format with stylua --- lua/cmp/types/lsp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/cmp/types/lsp.lua b/lua/cmp/types/lsp.lua index c6c54cc..1ab3ca8 100644 --- a/lua/cmp/types/lsp.lua +++ b/lua/cmp/types/lsp.lua @@ -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