summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_extui/shared.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-05-02 17:31:09 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-05-02 19:09:56 +0200
commitc916bdf3298608d26ec6f68dd7eb0f830e7b7909 (patch)
tree728db642a343e5dc203dda3611c958ecdf8f6063 /runtime/lua/vim/_extui/shared.lua
parent8d6f016345ef8376604c4ab5bddcdb8fd595250c (diff)
fix(extui): close message window with `q`
Problem: Using `<c-c>` does not follow precedent (from `checkhealth` etc.) for closing "information windows". Solution: Use `q` for close mapping.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
-rw-r--r--runtime/lua/vim/_extui/shared.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua
index acd5d08e8b..95fc753b76 100644
--- a/runtime/lua/vim/_extui/shared.lua
+++ b/runtime/lua/vim/_extui/shared.lua
@@ -47,8 +47,8 @@ function M.tab_check_wins()
local parser = assert(vim.treesitter.get_parser(M.bufs.cmd, 'vim', {}))
M.cmd.highlighter = vim.treesitter.highlighter.new(parser)
elseif type == 'more' then
- -- Close more window with Ctrl-C.
- vim.keymap.set('n', '<C-c>', '<C-w>c', { buffer = M.bufs.more })
+ -- Close more window with `q`, same as `checkhealth`
+ vim.keymap.set('n', 'q', '<C-w>c', { buffer = M.bufs.more })
end
end