From 303d01b3e880307be9d953fa3e2fa8b1f355102d Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Thu, 28 Oct 2021 06:48:24 -0700 Subject: [PATCH] feat(lsp): move rename change to title --- lua/cosmic/core/theme/ui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/cosmic/core/theme/ui.lua b/lua/cosmic/core/theme/ui.lua index b849f68..d7215ad 100644 --- a/lua/cosmic/core/theme/ui.lua +++ b/lua/cosmic/core/theme/ui.lua @@ -72,8 +72,8 @@ function M.rename() msg = msg .. ('%d changes -> %s'):format(#c, utils.get_relative_path(f)) .. '\n' end local currName = vim.fn.expand('') - msg = msg .. ('\n%s -> %s'):format(currName, new_word) - vim.notify(msg, vim.log.levels.INFO) + msg = msg:sub(1, #msg - 1) + vim.notify(msg, vim.log.levels.INFO, { title = ('Rename: %s -> %s'):format(currName, new_word) }) end end