Skip to content

Commit 08473df

Browse files
committed
Handle the older vim.loop and the newer vim.uv
1 parent a2d7e82 commit 08473df

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

fnl/nfnl/fs.fnl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@
102102
(let [regex (vim.regex (vim.fn.glob2regpat (M.join-path [dir expr])))]
103103
(regex:match_str path)))
104104

105+
(local uv (or vim.uv vim.loop))
106+
105107
(fn M.exists? [path]
106108
(when path
107-
(= "table" (type (vim.uv.fs_stat path)))))
109+
(= "table" (type (uv.fs_stat path)))))
108110

109111
M

lua/nfnl/fs.lua

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)