fix(lang): only use first part in multi-lang

This commit is contained in:
Thomas Vigouroux 2021-08-30 11:36:30 +02:00 committed by Stephan Seitz
parent 1d8dd9665c
commit 14e9df138b

View file

@ -716,6 +716,7 @@ local M = {
}
function M.ft_to_lang(ft)
ft = vim.split(ft, '.', true)[1]
return ft_to_parsername[ft] or ft
end