From ba3167a1a4fdc9028eb1f088e823ac1dceb202f4 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Tue, 11 Aug 2020 14:36:13 +0200 Subject: perf: cache parser file list for performance --- lua/nvim-treesitter/install.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/nvim-treesitter/install.lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index e8c6cf86..eac4af7e 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -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. -- cgit v1.2.3