mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
fix(install): early return if parser_info does not exist
This commit is contained in:
parent
a9f34d5a76
commit
02a1a0537c
3 changed files with 41 additions and 39 deletions
|
|
@ -91,6 +91,7 @@ local function get_parser_install_info(lang)
|
|||
|
||||
if not parser_config then
|
||||
log.error('Parser not available for language "' .. lang .. '"')
|
||||
return
|
||||
end
|
||||
|
||||
return parser_config.install_info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue