Skip to content

Commit

Permalink
fix(#2976): use vim.loop to preserve neovim 0.9 compatibility (#2977)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis authored Oct 28, 2024
1 parent 8f97487 commit 00dff48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/nvim-tree/explorer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local FILTER_REASON = require("nvim-tree.enum").FILTER_REASON
local config

---@class (exact) Explorer: RootNode
---@field uid_explorer number vim.uv.hrtime() at construction time
---@field uid_explorer number vim.loop.hrtime() at construction time
---@field opts table user options
---@field augroup_id integer
---@field renderer Renderer
Expand Down Expand Up @@ -63,7 +63,7 @@ function Explorer:create(path)

o.explorer = o

o.uid_explorer = vim.uv.hrtime()
o.uid_explorer = vim.loop.hrtime()
o.augroup_id = vim.api.nvim_create_augroup("NvimTree_Explorer_" .. o.uid_explorer, {})

o.open = true
Expand Down

0 comments on commit 00dff48

Please sign in to comment.