diff options
| author | Shane Hird <shane.hird@csgicorp.com> | 2021-07-02 22:05:11 +1000 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-07-04 14:59:13 +0200 |
| commit | 7dccbbad6cba20f47414196bee3a10e1319f201a (patch) | |
| tree | 982f27726211d737d76cbf00ae2cb254938ea6bb | |
| parent | Re-introduce prompting for installation (diff) | |
| download | nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar.gz nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar.bz2 nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar.lz nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar.xz nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.tar.zst nvim-treesitter-7dccbbad6cba20f47414196bee3a10e1319f201a.zip | |
Reduce diffs from master
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
