refactor: use vim.uv

This commit is contained in:
Christian Clason 2023-06-03 12:08:14 +02:00
parent cd2c826972
commit 37957d6bcf
9 changed files with 40 additions and 62 deletions

View file

@ -62,7 +62,7 @@ end
function M.get_install_dir(dir_name)
local dir = vim.fs.joinpath(config.install_dir, dir_name)
if not vim.loop.fs_stat(dir) then
if not vim.uv.fs_stat(dir) then
local ok, err = pcall(vim.fn.mkdir, dir, 'p', '0755')
if not ok then
local log = require('nvim-treesitter.log')