diff options
author | Maria José Solano <majosolano99@gmail.com> | 2025-01-05 09:51:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-05 09:51:51 -0800 |
commit | 548f19ccc3018aa563d25cf99a9ce70a56b115fe (patch) | |
tree | 20c9cb41141d7bd6b71a0bc849c44929ff68c476 /runtime/lua/vim/health.lua | |
parent | bd2a4edf1b9390521d822fc990369f00694ba320 (diff) | |
download | rneovim-548f19ccc3018aa563d25cf99a9ce70a56b115fe.tar.gz rneovim-548f19ccc3018aa563d25cf99a9ce70a56b115fe.tar.bz2 rneovim-548f19ccc3018aa563d25cf99a9ce70a56b115fe.zip |
feat(health): close checkhealth buffers with q #31870
Diffstat (limited to 'runtime/lua/vim/health.lua')
-rw-r--r-- | runtime/lua/vim/health.lua | 9 |
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 |