aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_watch.lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2023-07-10 19:38:15 +0800
committerGitHub <noreply@github.com>2023-07-10 04:38:15 -0700
commit766f4978d6cb146511cf0b676c01e5327db46647 (patch)
tree84fddf19619077a9e8fcf8bab33dbedbe08d0fad /runtime/lua/vim/_watch.lua
parentfbeef0d4ef1aadc4e50b9f33946cf4dca8ca6b62 (diff)
downloadrneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.gz
rneovim-766f4978d6cb146511cf0b676c01e5327db46647.tar.bz2
rneovim-766f4978d6cb146511cf0b676c01e5327db46647.zip
fix(lint): lint warnings #24226
Diffstat (limited to 'runtime/lua/vim/_watch.lua')
-rw-r--r--runtime/lua/vim/_watch.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_watch.lua b/runtime/lua/vim/_watch.lua
index d489cef9fc..00b7416098 100644
--- a/runtime/lua/vim/_watch.lua
+++ b/runtime/lua/vim/_watch.lua
@@ -37,7 +37,7 @@ end
--- - uvflags (table|nil)
--- Same flags as accepted by |uv.fs_event_start()|
---@param callback (function) The function called when new events
----@return (function) A function to stop the watch
+---@return (function) Stops the watcher
function M.watch(path, opts, callback)
vim.validate({
path = { path, 'string', false },
@@ -208,7 +208,7 @@ end
--- not match the pattern will be reported. Matches against both files and
--- directories. When nil, matches nothing.
---@param callback (function) The function called when new events
----@returns (function) A function to stop the watch.
+---@return function Stops the watcher
function M.poll(path, opts, callback)
vim.validate({
path = { path, 'string', false },