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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,
})