···6060 if vim.fn.has("macunix") == 1 then
6161 parser = string.format("$HOME/.cache/tree-sitter/lib/%s.dylib", lang)
6262 end
6363+ local path = vim.fs.normalize(parser)
6464+ if not vim.uv.fs_stat(path) then
6565+ return
6666+ end
6367 vim.treesitter.language.add(lang, {
6464- path = vim.fs.normalize(parser),
6868+ path = path,
6569 filetype = filetype,
6670 })
6771 if not vim.treesitter.language.get_lang(filetype) then