fix: replace vim.* "requires" with explicit calls to vim functions (#1701)
This commit is contained in:
committed by
GitHub
parent
6d6a44626d
commit
8cc369695b
@@ -1,4 +1,3 @@
|
||||
local uv = vim.loop
|
||||
local notify = require "nvim-tree.notify"
|
||||
|
||||
local log = require "nvim-tree.log"
|
||||
@@ -45,7 +44,7 @@ function Event:start()
|
||||
|
||||
local rc, _, name
|
||||
|
||||
self._fs_event, _, name = uv.new_fs_event()
|
||||
self._fs_event, _, name = vim.loop.new_fs_event()
|
||||
if not self._fs_event then
|
||||
self._fs_event = nil
|
||||
notify.warn(string.format("Could not initialize an fs_event watcher for path %s : %s", self._path, name))
|
||||
|
||||
Reference in New Issue
Block a user