mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
docs: adjust fswatch overflow message to mention docs with info
- Add :h fswatch-limitations that notifies user about default inotify limitations on linux and how to adjust them - Check for Event queue overflow message from fswatch and refer user to new documentation Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
committed by
Lewis Russell
parent
cdbc3e3f3e
commit
0f20b7d803
@@ -289,6 +289,9 @@ function M.fswatch(path, opts, callback)
|
||||
end
|
||||
|
||||
if data and #vim.trim(data) > 0 then
|
||||
if vim.fn.has('linux') == 1 and vim.startswith(data, 'Event queue overflow') then
|
||||
data = 'inotify(7) limit reached, see :h fswatch-limitations for more info.'
|
||||
end
|
||||
vim.schedule(function()
|
||||
vim.notify('fswatch: ' .. data, vim.log.levels.ERROR)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user