neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8200223ee7a8dd9882367582c4a6e1d280012fff
parent 267bbe64cb4fc1e5d3055307d11872f948a4e44f
Author: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Date:   Sat,  2 Aug 2025 14:57:59 +0300

fix(pack): use `vim.pack:` as message/progress prefix

Diffstat:
Mruntime/lua/vim/pack.lua | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua @@ -202,7 +202,7 @@ end --- @param level ('DEBUG'|'TRACE'|'INFO'|'WARN'|'ERROR')? local function notify(msg, level) msg = type(msg) == 'table' and table.concat(msg, '\n') or msg - vim.notify('(vim.pack) ' .. msg, vim.log.levels[level or 'INFO']) + vim.notify('vim.pack: ' .. msg, vim.log.levels[level or 'INFO']) vim.cmd.redraw() end @@ -382,8 +382,8 @@ local function new_progress_report(title) return vim.schedule_wrap(function(kind, percent, fmt, ...) local progress = kind == 'end' and 'done' or ('%3d%%'):format(percent) - local details = (': %s %s'):format(title, fmt:format(...)) - local chunks = { { '(vim.pack)', 'ModeMsg' }, { ' ' }, { progress, 'WarningMsg' }, { details } } + local details = (' %s %s'):format(title, fmt:format(...)) + local chunks = { { 'vim.pack', 'ModeMsg' }, { ': ' }, { progress, 'WarningMsg' }, { details } } vim.api.nvim_echo(chunks, true, { kind = 'progress' }) -- Force redraw to show installation progress during startup vim.cmd.redraw({ bang = true }) @@ -535,7 +535,7 @@ local function checkout(p, timestamp, skip_same_sha) trigger_event(p, 'PackChangedPre', 'update') - local msg = ('(vim.pack) %s Stash before checkout'):format(timestamp) + local msg = ('vim.pack: %s Stash before checkout'):format(timestamp) git_cmd({ 'stash', '--quiet', '--message', msg }, p.path) git_cmd({ 'checkout', '--quiet', p.info.sha_target }, p.path)