diff --git a/lua/cosmic/core/theme/ui.lua b/lua/cosmic/core/theme/ui.lua index 6a95609..b54881d 100644 --- a/lua/cosmic/core/theme/ui.lua +++ b/lua/cosmic/core/theme/ui.lua @@ -69,13 +69,12 @@ function M.rename() -- echo the resulting changes local new_word = '' if result and result.changes then - local msg = '' + local msg = {} for f, c in pairs(result.changes) do new_word = c[1].newText - msg = msg .. ('%d changes -> %s'):format(#c, utils.get_relative_path(f)) .. '\n' + table.insert(msg, ('%d changes -> %s'):format(#c, utils.get_relative_path(f))) end local currName = vim.fn.expand('') - msg = msg:sub(1, #msg - 1) vim.notify(msg, vim.log.levels.INFO, { title = ('Rename: %s -> %s'):format(currName, new_word) }) end end diff --git a/lua/cosmic/utils.lua b/lua/cosmic/utils.lua index ae7f2df..ab4823f 100644 --- a/lua/cosmic/utils.lua +++ b/lua/cosmic/utils.lua @@ -103,7 +103,7 @@ function M.update() table.insert(errors, err) end, }) - :sync() -- or start() + :sync() end return M