mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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:

committed by
Christian Clason

parent
8d6f016345
commit
c916bdf329
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user