mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user