mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
fix(install): create cache dir if not existing
This commit is contained in:
parent
1043871ef4
commit
61b0a05ec0
2 changed files with 4 additions and 3 deletions
|
|
@ -440,6 +440,10 @@ local function install(languages, options)
|
|||
options = options or {}
|
||||
|
||||
local cache_dir = fs.normalize(fn.stdpath('cache'))
|
||||
if not vim.uv.fs_stat(cache_dir) then
|
||||
vim.fn.mkdir(cache_dir, 'p')
|
||||
end
|
||||
|
||||
local install_dir = config.get_install_dir('parser')
|
||||
|
||||
local task_funs = {} ---@type async.TaskFun[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue