feat(lsp): move rename change to title

This commit is contained in:
Matt Leong 2021-10-28 06:48:24 -07:00
parent 8433f2a609
commit 303d01b3e8

View file

@ -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('<cword>')
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