summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter
diff options
context:
space:
mode:
authorkiyan42 <yazdani.kiyan@protonmail.com>2020-06-25 12:39:59 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-25 13:52:29 +0200
commit0ed1fbf9093a7dda9aadda145c1b35dc5343cc8b (patch)
treeb661bde533e8047beb17b5bcd64b0ae5e88e7229 /lua/nvim-treesitter
parent3e4ea3d890d3914d1fe56b21363308470c700678 (diff)
continue installing if not reinstalling one parser
Diffstat (limited to 'lua/nvim-treesitter')
-rw-r--r--lua/nvim-treesitter/install.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 24f6fbd6..686688bf 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -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