From 7dccbbad6cba20f47414196bee3a10e1319f201a Mon Sep 17 00:00:00 2001 From: Shane Hird Date: Fri, 2 Jul 2021 22:05:11 +1000 Subject: Reduce diffs from master --- lua/nvim-treesitter/install.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 1c3128424..0df12cb0a 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -283,7 +283,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync, end end -local function install_lang(ask_reinstall, lang, cache_folder, install_folder, with_sync, generate_from_grammar) +local function install_lang(lang, ask_reinstall, cache_folder, install_folder, with_sync, generate_from_grammar) if is_installed(lang) and ask_reinstall ~= 'force' then if not ask_reinstall then return end @@ -305,7 +305,6 @@ local function install_lang(ask_reinstall, lang, cache_folder, install_folder, w } run_install(cache_folder, install_folder, lang, install_info, with_sync, generate_from_grammar) - return 0 end local function install(options) @@ -348,7 +347,7 @@ local function install(options) end for _, lang in ipairs(languages) do - install_lang(ask, lang, cache_folder, install_folder, with_sync, generate_from_grammar) + install_lang(lang, ask, cache_folder, install_folder, with_sync, generate_from_grammar) end end end -- cgit v1.2.3-70-g09d2