mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
feat(health): close checkhealth buffers with q #31870
This commit is contained in:
committed by
GitHub
parent
bd2a4edf1b
commit
548f19ccc3
@ -408,6 +408,15 @@ function M._check(mods, plugin_names)
|
|||||||
vim.cmd.redraw()
|
vim.cmd.redraw()
|
||||||
vim.print('')
|
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.
|
-- Once we're done writing checks, set nomodifiable.
|
||||||
vim.bo[bufnr].modifiable = false
|
vim.bo[bufnr].modifiable = false
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user