From 32e128f20992e350b3e39c7469baa1f692418203 Mon Sep 17 00:00:00 2001 From: Manuel Date: Thu, 1 Aug 2024 16:00:48 +0200 Subject: fix(watch): exclude .git when using inotifywait (#29914) inotifywait man page specifies: The file must be specified with a relative or absolute path according to whether a relative or absolute path is given for watched directories. So it would only work this way in case the path is relative (which at least for gopls it is not) --- runtime/lua/vim/_watch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_watch.lua b/runtime/lua/vim/_watch.lua index 40f18ce5b0..3c090af3ff 100644 --- a/runtime/lua/vim/_watch.lua +++ b/runtime/lua/vim/_watch.lua @@ -277,7 +277,7 @@ function M.inotify(path, opts, callback) 'modify', '--event', 'move', - '@.git', -- ignore git directory + string.format('@%s/.git', path), -- ignore git directory path, }, { stderr = function(err, data) -- cgit