mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
refactor: use vim.uv
This commit is contained in:
parent
cd2c826972
commit
37957d6bcf
9 changed files with 40 additions and 62 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue