perf(explorer): disable watchdirs fallback watcher

This commit is contained in:
Folke Lemaitre 2025-02-04 20:53:49 +01:00
parent d2796a1a8f
commit 5d34380310
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -14,7 +14,8 @@ function M.watcher()
elseif vim.fn.executable("inotifywait") == 1 then
return vim._watch.inotify
end
return vim._watch.watchdirs
-- This is horrible for performance. Don't use it!
-- return vim._watch.watchdirs
end
local running = {} ---@type table<string, fun()>