aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/lua/vim/health.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua
index 3e831371b8..ebad000c5b 100644
--- a/runtime/lua/vim/health.lua
+++ b/runtime/lua/vim/health.lua
@@ -408,6 +408,15 @@ function M._check(mods, plugin_names)
vim.cmd.redraw()
vim.print('')
+ -- Quit with 'q' inside healthcheck buffers.
+ vim.api.nvim_buf_set_keymap(
+ bufnr,
+ 'n',
+ 'q',
+ '<c-w>q',
+ { silent = true, noremap = true, nowait = true }
+ )
+
-- Once we're done writing checks, set nomodifiable.
vim.bo[bufnr].modifiable = false
end