From 34efdadb4e865ff28e34dcce19e8abc1dd383651 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 30 Jun 2026 21:33:32 +0200 Subject: feat(health): report ulimit info Problem: Nvim shows `(libuv) kqueue(): Too many open files` on macos. ref https://github.com/neovim/neovim/issues/40238 Solution: Add a healthcheck for this situation. --- runtime/lua/vim/_meta/options.gen.lua | 50 +++++++++++++++-------------------- 1 file changed, 22 insertions(+), 28 deletions(-) (limited to 'runtime/lua/vim/_meta') diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index a647755522..d8773efc3b 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -7023,24 +7023,20 @@ vim.o.sua = vim.o.suffixesadd vim.bo.suffixesadd = vim.o.suffixesadd vim.bo.sua = vim.bo.suffixesadd ---- Use a swapfile for the buffer. This option can be reset when a ---- swapfile is not wanted for a specific buffer. For example, with ---- confidential information that even root must not be able to access. ---- Careful: All text will be in memory: ---- - Don't use this for big files. +--- Use a `swap-file` for the buffer (if 'updatecount' is non-zero). The +--- 'directory' option decides where swapfiles are stored. +--- +--- To open a new buffer without creating a swapfile, use `:noswapfile`. +--- To disable for an existing buffer, reset its 'swapfile' option. +--- Careful: --- - Recovery will be impossible! ---- A swapfile will only be present when 'updatecount' is non-zero and ---- 'swapfile' is set. ---- When 'swapfile' is reset, the swap file for the current buffer is ---- immediately deleted. When 'swapfile' is set, and 'updatecount' is ---- non-zero, a swap file is immediately created. ---- Also see `swap-file`. ---- If you want to open a new buffer without creating a swap file for it, ---- use the `:noswapfile` modifier. ---- See 'directory' for where the swap file is created. ---- ---- This option is used together with 'bufhidden' and 'buftype' to ---- specify special kinds of buffers. See `special-buffers`. +--- - The entire file will be in memory. +--- +--- When reset, the swapfile for the current buffer is immediately +--- deleted. When re-enabled (and 'updatecount' is non-zero), a swapfile +--- is immediately created. +--- +--- Used with 'bufhidden' and 'buftype' to specify `special-buffers`. --- --- @type boolean vim.o.swapfile = true @@ -7702,17 +7698,15 @@ vim.o.ur = vim.o.undoreload vim.go.undoreload = vim.o.undoreload vim.go.ur = vim.go.undoreload ---- After typing this many characters the swap file will be written to ---- disk. When zero, no swap file will be created at all (see chapter on ---- recovery `crash-recovery`). 'updatecount' is set to zero by starting ---- Vim with the "-n" option, see `startup`. When editing in readonly ---- mode this option will be initialized to 10000. ---- The swapfile can be disabled per buffer with 'swapfile'. ---- When 'updatecount' is set from zero to non-zero, swap files are ---- created for all buffers that have 'swapfile' set. When 'updatecount' ---- is set to zero, existing swap files are not deleted. ---- This option has no meaning in buffers where 'buftype' is "nofile" or ---- "nowrite". +--- The `swap-file` will be written after typing this many characters. +--- +--- - Ignored in buffers where 'buftype' is "nofile" or "nowrite". +--- - Initialized to 10000 when editing in readonly `-R` mode. +--- - To disable swapfiles per-buffer, unset the 'swapfile' option. +--- - To disable swapfiles globally, set this option to zero (or start +--- with `-n`). See `crash-recovery`. Existing swapfiles are not deleted. +--- - When re-enabled (from zero to non-zero), swapfiles are created for +--- all buffers that have 'swapfile' set. --- --- @type integer vim.o.updatecount = 200 -- cgit