From e66e329adc39028d13f9e682c7ba1770524aec4a Mon Sep 17 00:00:00 2001 From: Mist Date: Fri, 23 Feb 2024 21:19:09 +0800 Subject: [PATCH] [Fix] code style use stylua --- lua/codesnap/utils/visual.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codesnap/utils/visual.lua b/lua/codesnap/utils/visual.lua index 4ba6e2d..4fedca6 100644 --- a/lua/codesnap/utils/visual.lua +++ b/lua/codesnap/utils/visual.lua @@ -15,7 +15,7 @@ function visual_utils.get_selected_text() if start_pos[2] > end_pos[2] then start_pos, end_pos = end_pos, start_pos end - + for i = start_pos[2], end_pos[2] do -- 使用 vim.api.nvim_buf_get_lines() 函数获取选中的文本 local line_text = vim.api.nvim_buf_get_lines(0, i - 1, i, false)[1]