commit 5e9040648739252b1b8d38c9b46b111767f34cf2
parent 64b0e6582ae8c273efbe39109bcb261079c2bcd4
Author: Maria José Solano <majosolano99@gmail.com>
Date: Sat, 4 Jan 2025 15:27:36 -0800
fix(health): set nomodifiable in checkhealth buffers
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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