aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui.lua
diff options
context:
space:
mode:
authorSebastian Lyng Johansen <sebastian@lyngjohansen.com>2025-07-10 02:42:47 +0200
committerGitHub <noreply@github.com>2025-07-09 17:42:47 -0700
commit7526fb449de39afb786a1a68365230996551b5c5 (patch)
tree3dd02fb7b9fb2ddee1f81411367c9548bee94032 /runtime/lua/vim/_extui.lua
parent8aed423072a37bfa04263263d45c91263e1072d3 (diff)
downloadrneovim-7526fb449de39afb786a1a68365230996551b5c5.tar.gz
rneovim-7526fb449de39afb786a1a68365230996551b5c5.tar.bz2
rneovim-7526fb449de39afb786a1a68365230996551b5c5.zip
feat(extui): use winborder for msg window #34859
Problem: The message window is essentially a regular floating window but does not use 'winborder'. Still some "scratch" buffer options unset after it was removed from its window. Solution: Do not set the border when opening the window message. Forego passing `scratch = true` when opening a buffer, set the options manually when necessary. Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_extui.lua')
-rw-r--r--runtime/lua/vim/_extui.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/lua/vim/_extui.lua b/runtime/lua/vim/_extui.lua
index 9132d1fa64..14430c5f30 100644
--- a/runtime/lua/vim/_extui.lua
+++ b/runtime/lua/vim/_extui.lua
@@ -87,14 +87,6 @@ function M.enable(opts)
return true
end)
- -- Use MsgArea and hide search highlighting in the cmdline window.
- -- TODO: Add new highlight group/namespaces for other windows? It is
- -- not clear if MsgArea is wanted in the msg, pager and dialog windows.
- api.nvim_set_hl(ext.ns, 'Normal', { link = 'MsgArea' })
- api.nvim_set_hl(ext.ns, 'Search', { link = 'MsgArea' })
- api.nvim_set_hl(ext.ns, 'CurSearch', { link = 'MsgArea' })
- api.nvim_set_hl(ext.ns, 'IncSearch', { link = 'MsgArea' })
-
-- The visibility and appearance of the cmdline and message window is
-- dependent on some option values. Reconfigure windows when option value
-- has changed and after VimEnter when the user configured value is known.