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 c9ee49f61d
commit 0ce8619a25
8 changed files with 390 additions and 242 deletions

View file

@ -10,7 +10,7 @@ local M = {}
local config = {
auto_install = false,
ensure_install = {},
ignore_install = {},
ignore_install = { 'unsupported' },
install_dir = vim.fs.joinpath(vim.fn.stdpath('data'), 'site'),
}

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
@ -434,7 +429,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

File diff suppressed because it is too large Load diff