Skip to content

Commit

Permalink
fix: incorrect vim command
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 authored Jul 30, 2024
1 parent be4156c commit 14a8e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/guard/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function M.format(buf, range, acc)
apply(text_edits, scratch, offset_encoding)
if n_edits == 0 then
vim.lsp.util.apply_text_edits = apply
api.nvim_command('silent! bufwipe! ' .. scratch)
coroutine.resume(co, table.concat(api.nvim_buf_get_lines(scratch, 0, -1, false), '\n'))
api.nvim_command('silent! bwipe! ' .. scratch)
end
end

Expand Down

0 comments on commit 14a8e35

Please sign in to comment.