fix: show swapfile warning as a warning (#28971)

The new default SwapExists autocommand displays warning text (W325) but
does not use the WarningMsg highlight group as other warnings do. Use
the WARN log level when displaying this warning.
This commit is contained in:
Gregory Anders
2024-05-24 10:44:02 -05:00
committed by GitHub
parent 1a2e6ebc59
commit e71713ba2b

View File

@ -269,7 +269,10 @@ do
return
end
vim.v.swapchoice = 'e' -- Choose "(E)dit".
vim.notify(('W325: Ignoring swapfile from Nvim process %d'):format(info.pid))
vim.notify(
('W325: Ignoring swapfile from Nvim process %d'):format(info.pid),
vim.log.levels.WARN
)
end,
})