nvim_runtime_lua

vim._watch.Opts

Fields3

Opts.debounce : nil | integer

ms

An |lpeg| pattern. Only changes to files whose full paths match the pattern will be reported. Only matches against non-directoriess, all directories will be watched for new potentially-matching files. exclude_pattern can be used to filter out directories. When nil, matches any file name.

Opts.include_pattern : vim.lpeg.Pattern | nil
Opts.exclude_pattern : vim.lpeg.Pattern | nil

An |lpeg| pattern. Only changes to files and directories whose full path does not match the pattern will be reported. Matches against both files and directories. When nil, matches nothing.