Use ft_to_lang in guess_query_lang

This together with https://github.com/nvim-treesitter/nvim-treesitter/pull/1495
will the playground work with ecma and html tags
master
Santos Gallegos 3 years ago
parent 1e02dece0d
commit b1478ed0db
No known key found for this signature in database
GPG Key ID: 811173C303342045

@ -58,7 +58,7 @@ function M.guess_query_lang(buf)
if not query_lang then
query_lang = query_lang_from_playground_buf(buf)
end
return query_lang
return parsers.ft_to_lang(query_lang)
end
function M.lint(query_buf)

Loading…
Cancel
Save