aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-05-24 10:44:02 -0500
committerGitHub <noreply@github.com>2024-05-24 10:44:02 -0500
commite71713ba2b5cb4e3b725d162b2dd43e35975eead (patch)
tree1d971ba90ee9b3e18e6a33dc42133ac3357c062a
parent1a2e6ebc59821fc10a02dae87e3524dbf32b7b33 (diff)
downloadrneovim-e71713ba2b5cb4e3b725d162b2dd43e35975eead.tar.gz
rneovim-e71713ba2b5cb4e3b725d162b2dd43e35975eead.tar.bz2
rneovim-e71713ba2b5cb4e3b725d162b2dd43e35975eead.zip
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.
-rw-r--r--runtime/lua/vim/_defaults.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua
index ede634636e..7015d376ae 100644
--- 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,
})