Skip to content

Commit

Permalink
docs: Add file limit command for macOS (nvim-lua#430)
Browse files Browse the repository at this point in the history
The README only showed the command to raise the limit on the number of
open files. I added the command for macOS, as it can be difficult to
find.
  • Loading branch information
realprogrammersusevim authored May 24, 2023
1 parent ee6fda7 commit 58a496a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ DELETED: Please use packer.nvim or other lua-rocks wrapper instead. This no long
### FAQ

1. Error: Too many open files

- \*nix systems have a setting to configure the maximum amount of open file
handles. It can occur that the default value is pretty low and that you end
up getting this error after opening a couple of files. You can see the
current limit with `ulimit -n` and set it with `ulimit -n 4096`. (macos might
work different)
handles. It can occur that the default value is pretty low and that you end up
getting this error after opening a couple of files. On Linux you can see the
current limit with `ulimit -n` and set it with `ulimit -n 4096`. If you're on
macOS the command is `sudo launchctl limit maxfiles 4096 4096`.

0 comments on commit 58a496a

Please sign in to comment.