feat: add parser tiers

Tier 1: Stable
Tier 2: Core (maintained by org members)
Tier 3: Community (maintained by external contributors, to varying
degree)
Tier 4: Unsupported (lacking active maintainer or declared
experimental); skipped in lockfile update and ignored for automatic
install by default
This commit is contained in:
Christian Clason 2023-06-10 17:12:35 +02:00
parent f0a984347c
commit bae77b87b1
7 changed files with 397 additions and 254 deletions

View file

@ -95,11 +95,6 @@ local function get_target_revision(lang)
lockfile = vim.json.decode(util.read_file(filename)) --[[@as table<string, LockfileInfo>]]
end
local install_info = get_parser_install_info(lang)
if install_info.revision then
return install_info.revision
end
if lockfile[lang] then
return lockfile[lang].revision
end
@ -437,7 +432,7 @@ local function install_lang(lang, cache_dir, install_dir, force, generate_from_g
logger:error('Node JS not found: `node` is not executable')
end
local revision = repo.revision or get_target_revision(lang)
local revision = get_target_revision(lang)
local maybe_local_path = fs.normalize(repo.url)
local from_local_path = vim.fn.isdirectory(maybe_local_path) == 1