From 5e9040648739252b1b8d38c9b46b111767f34cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Sat, 4 Jan 2025 15:27:36 -0800 Subject: [PATCH] fix(health): set nomodifiable in checkhealth buffers --- runtime/lua/vim/health.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index 52a7a13966..3e831371b8 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -407,6 +407,9 @@ function M._check(mods, plugin_names) -- Clear the 'Running healthchecks...' message. vim.cmd.redraw() vim.print('') + + -- Once we're done writing checks, set nomodifiable. + vim.bo[bufnr].modifiable = false end return M