From 4de18981ce43d286c697cb38f12bdcbab2f2c160 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Wed, 27 Oct 2021 17:37:30 -0700 Subject: [PATCH] feat(core): Rename notifications are cleaner --- lua/cosmic/core/theme/ui.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/cosmic/core/theme/ui.lua b/lua/cosmic/core/theme/ui.lua index 9a0ac55..c45a5e4 100644 --- a/lua/cosmic/core/theme/ui.lua +++ b/lua/cosmic/core/theme/ui.lua @@ -61,9 +61,12 @@ function M.rename() end -- echo the resulting changes if result and result.changes then + local msg = '' for f, c in pairs(result.changes) do - vim.notify(('%d changes -> %s'):format(#c, utils.get_relative_path(f)), vim.log.levels.INFO) + msg = msg .. ('%d changes -> %s'):format(#c, utils.get_relative_path(f)) .. '\n' end + msg = msg:sub(1, #msg - 1) + vim.notify(msg, vim.log.levels.INFO) end vim.lsp.handlers[method](...) end