diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-06-03 11:06:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 12:06:00 +0200 |
commit | 2db719f6c2b677fcbc197b02fe52764a851523b2 (patch) | |
tree | 648885f655ea6eea2d6b5ad9409bc18c3b49e0f7 /runtime/lua/vim/_watch.lua | |
parent | c65e2203f70cd5d66fcb8ffb26f8cef38f50e04f (diff) | |
download | rneovim-2db719f6c2b677fcbc197b02fe52764a851523b2.tar.gz rneovim-2db719f6c2b677fcbc197b02fe52764a851523b2.tar.bz2 rneovim-2db719f6c2b677fcbc197b02fe52764a851523b2.zip |
feat(lua): rename vim.loop -> vim.uv (#22846)
Diffstat (limited to 'runtime/lua/vim/_watch.lua')
-rw-r--r-- | runtime/lua/vim/_watch.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/_watch.lua b/runtime/lua/vim/_watch.lua index dbffd726a2..3bd8a56f6e 100644 --- a/runtime/lua/vim/_watch.lua +++ b/runtime/lua/vim/_watch.lua @@ -46,7 +46,7 @@ function M.watch(path, opts, callback) path = vim.fs.normalize(path) local uvflags = opts and opts.uvflags or {} - local handle, new_err = vim.loop.new_fs_event() + local handle, new_err = vim.uv.new_fs_event() assert(not new_err, new_err) local _, start_err = handle:start(path, uvflags, function(err, filename, events) assert(not err, err) @@ -57,7 +57,7 @@ function M.watch(path, opts, callback) end local change_type = events.change and M.FileChangeType.Changed or 0 if events.rename then - local _, staterr, staterrname = vim.loop.fs_stat(fullpath) + local _, staterr, staterrname = vim.uv.fs_stat(fullpath) if staterrname == 'ENOENT' then change_type = M.FileChangeType.Deleted else @@ -99,7 +99,7 @@ local function poll_internal(path, opts, callback, watches) } if not watches.handle then - local poll, new_err = vim.loop.new_fs_poll() + local poll, new_err = vim.uv.new_fs_poll() assert(not new_err, new_err) watches.handle = poll local _, start_err = poll:start( |