From e4abbb80eac3b7dbaecbc0723f1f954c316cde95 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 2 Sep 2021 21:02:01 +1000 Subject: [PATCH] format --- lua/tests/go_fmt_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/tests/go_fmt_spec.lua b/lua/tests/go_fmt_spec.lua index 1839213..f783ad6 100644 --- a/lua/tests/go_fmt_spec.lua +++ b/lua/tests/go_fmt_spec.lua @@ -111,13 +111,14 @@ describe("should run gofmt", function() vim.cmd([[cd %:p:h]]) require("go.format").goimport() + vim.cmd([[w]]) print("workspaces:", vim.inspect(vim.lsp.buf.list_workspace_folders())) vim.wait(200, function() end) local fmt = vim.fn.join(vim.fn.readfile(path), "\n") print(vim.inspect(fmt)) - -- eq(expected, fmt) + eq(expected, fmt) eq(1, 1) -- still not working cmd = "bd! " .. path vim.cmd(cmd)