diff options
author | Manuel <dev+git@manuelsbrain.de> | 2024-08-01 16:00:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 16:00:48 +0200 |
commit | 32e128f20992e350b3e39c7469baa1f692418203 (patch) | |
tree | 9fff934efa7963e670a445940adbc5be3a7c78de | |
parent | 3146433190803247ce0132fe08a8576f4e50f23d (diff) | |
download | rneovim-32e128f20992e350b3e39c7469baa1f692418203.tar.gz rneovim-32e128f20992e350b3e39c7469baa1f692418203.tar.bz2 rneovim-32e128f20992e350b3e39c7469baa1f692418203.zip |
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)
-rw-r--r-- | runtime/lua/vim/_watch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |