neovim

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

commit e71713ba2b5cb4e3b725d162b2dd43e35975eead
parent 1a2e6ebc59821fc10a02dae87e3524dbf32b7b33
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date:   Fri, 24 May 2024 10:44:02 -0500

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.
Diffstat:
Mruntime/lua/vim/_defaults.lua | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua @@ -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, })