Remove get_parser logic

upstream now handles parsers by itself, so we don't need to do it
in this repo.
This commit is contained in:
kiyan42 2020-10-15 21:04:38 +02:00 committed by Thomas Vigouroux
parent 25bdf0f00d
commit e5d8b6ade7

View file

@ -377,13 +377,7 @@ function M.get_parser(bufnr, lang)
local lang = lang or M.get_buf_lang(buf)
if M.has_parser(lang) then
if not M[buf] then
M[buf] = {}
end
if not M[buf][lang] then
M[buf][lang] = ts.get_parser(buf, lang)
end
return M[buf][lang]
return ts.get_parser(bufnr, lang)
end
end