refactor: standardize log prefixes to [diffs.nvim]:
Problem: `lib.lua` used `[diffs]` and `debug.lua`/`init.lua` used `[diffs.nvim]` (no colon) while the rest of the codebase used `[diffs.nvim]:`. Solution: Normalize all `vim.notify` prefixes to `[diffs.nvim]:` for consistency with `log.lua` and the other modules.
This commit is contained in:
parent
c7cd8fc24c
commit
2528886802
3 changed files with 5 additions and 5 deletions
|
|
@ -189,7 +189,7 @@ function M.ensure(callback)
|
|||
)
|
||||
|
||||
local dest = lib_path()
|
||||
vim.notify('[diffs] downloading libvscode_diff...', vim.log.levels.INFO)
|
||||
vim.notify('[diffs.nvim]: downloading libvscode_diff...', vim.log.levels.INFO)
|
||||
|
||||
local cmd = { 'curl', '-fSL', '-o', dest, url }
|
||||
|
||||
|
|
@ -198,7 +198,7 @@ function M.ensure(callback)
|
|||
vim.schedule(function()
|
||||
local handle = nil
|
||||
if result.code ~= 0 then
|
||||
vim.notify('[diffs] failed to download libvscode_diff', vim.log.levels.WARN)
|
||||
vim.notify('[diffs.nvim]: failed to download libvscode_diff', vim.log.levels.WARN)
|
||||
dbg('curl failed: %s', result.stderr or '')
|
||||
else
|
||||
local f = io.open(version_path(), 'w')
|
||||
|
|
@ -206,7 +206,7 @@ function M.ensure(callback)
|
|||
f:write(EXPECTED_VERSION)
|
||||
f:close()
|
||||
end
|
||||
vim.notify('[diffs] libvscode_diff downloaded', vim.log.levels.INFO)
|
||||
vim.notify('[diffs.nvim]: libvscode_diff downloaded', vim.log.levels.INFO)
|
||||
handle = M.load()
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue