feat(core): Rename notifications are cleaner

This commit is contained in:
Matt Leong 2021-10-27 17:37:30 -07:00
parent 22a3399214
commit 4de18981ce

View file

@ -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