diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2024-05-24 10:44:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 10:44:02 -0500 |
commit | e71713ba2b5cb4e3b725d162b2dd43e35975eead (patch) | |
tree | 1d971ba90ee9b3e18e6a33dc42133ac3357c062a /runtime/lua/vim/_defaults.lua | |
parent | 1a2e6ebc59821fc10a02dae87e3524dbf32b7b33 (diff) | |
download | rneovim-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.
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r-- | runtime/lua/vim/_defaults.lua | 5 |
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, }) |