feat(health): close checkhealth buffers with q #31870

This commit is contained in:
Maria José Solano 2025-01-05 09:51:51 -08:00 committed by GitHub
parent bd2a4edf1b
commit 548f19ccc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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