formatting_sync -> format

This commit is contained in:
ray-x 2022-05-12 14:46:49 +10:00
parent 86720cae95
commit 8b7d2c3eda

View File

@ -85,7 +85,7 @@ end
M.org_imports = function(wait_ms)
local codeaction = require("go.lsp").codeaction
codeaction("", "source.organizeImports", wait_ms)
vim.lsp.buf.formatting_sync(nil, wait_ms)
vim.lsp.buf.format({ async = true })
end
M.goimport = function(...)