mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
feat(health): close checkhealth buffers with q #31870
This commit is contained in:
parent
bd2a4edf1b
commit
548f19ccc3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user