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.
This commit is contained in:
Christian Clason
2025-05-02 17:31:09 +02:00
committed by Christian Clason
parent 8d6f016345
commit c916bdf329

View File

@ -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