Skip to content

Commit

Permalink
continue installing if not reinstalling one parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kyazdani42 authored and vigoux committed Jun 25, 2020
1 parent 3e4ea3d commit 0ed1fbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/nvim-treesitter/install.lua
Expand Up @@ -107,7 +107,7 @@ local function install(...)
if #api.nvim_get_runtime_file('parser/'..lang..'.so', false) > 0 then
local yesno = fn.input(lang .. ' parser already available: would you like to reinstall ? y/n: ')
print('\n ') -- mandatory to avoid messing up command line
if not string.match(yesno, '^y.*') then return end
if not string.match(yesno, '^y.*') then goto continue end
end
end

Expand All @@ -123,6 +123,7 @@ local function install(...)
}

run_install(cache_folder, package_path, lang, install_info)
::continue::
end
end

Expand Down

0 comments on commit 0ed1fbf

Please sign in to comment.