Skip to content

Commit

Permalink
[Fix] code style use stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 23, 2024
1 parent bed9f39 commit e66e329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/codesnap/utils/visual.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e66e329

Please sign in to comment.