mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
continue installing if not reinstalling one parser
This commit is contained in:
parent
3e4ea3d890
commit
0ed1fbf909
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
@ -123,6 +123,7 @@ local function install(...)
|
|||
}
|
||||
|
||||
run_install(cache_folder, package_path, lang, install_info)
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue