mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
perf: cache parser file list for performance
This commit is contained in:
parent
8f3b601bcc
commit
ba3167a1a4
2 changed files with 17 additions and 1 deletions
|
|
@ -59,6 +59,8 @@ local function iter_cmd_sync(cmd_list)
|
|||
end
|
||||
|
||||
local function run_install(cache_folder, package_path, lang, repo, with_sync)
|
||||
parsers.reset_cache()
|
||||
|
||||
local project_name = 'tree-sitter-'..lang
|
||||
local project_repo = cache_folder..'/'..project_name
|
||||
-- compile_location only needed for typescript installs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue