From 14a8e35993c4513da1c93719234de09e7d3a91a2 Mon Sep 17 00:00:00 2001 From: xiaoshihou <108414369+xiaoshihou514@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:32:51 +0800 Subject: [PATCH] fix: incorrect vim command --- lua/guard/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/guard/lsp.lua b/lua/guard/lsp.lua index a66ce34..9ab1f96 100644 --- a/lua/guard/lsp.lua +++ b/lua/guard/lsp.lua @@ -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