From 3f20d8bb09e82aeff7c6b02fbe8a165b44fc53d4 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 7 Sep 2021 21:48:19 -0700 Subject: [PATCH] chore(lsp): fix formatting in vim.lsp.log (#15596) --- runtime/lua/vim/lsp/log.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime/lua/vim/lsp/log.lua b/runtime/lua/vim/lsp/log.lua index e25db333f9..6c58d27368 100644 --- a/runtime/lua/vim/lsp/log.lua +++ b/runtime/lua/vim/lsp/log.lua @@ -34,15 +34,15 @@ do vim.fn.mkdir(vim.fn.stdpath('cache'), "p") local logfile = assert(io.open(logfilename, "a+")) - local log_info = vim.loop.fs_stat(logfilename) - if log_info and log_info.size > 1e9 then - local warn_msg = string.format( - "LSP client log is large (%d MB): %s", - log_info.size / (1000 * 1000), - logfilename - ) - vim.notify(warn_msg) - end + local log_info = vim.loop.fs_stat(logfilename) + if log_info and log_info.size > 1e9 then + local warn_msg = string.format( + "LSP client log is large (%d MB): %s", + log_info.size / (1000 * 1000), + logfilename + ) + vim.notify(warn_msg) + end -- Start message for logging logfile:write(string.format("[START][%s] LSP logging initiated\n", os.date(log_date_format)))