fix(modules): allow non-registered langs to use modules

This change allows for languages not managed by nvim-treesitter to use
Nvim-treesitter modules like folding and indent.
This commit is contained in:
Lewis Russell 2022-10-18 22:52:00 +01:00 committed by Christian Clason
parent e06da64459
commit b9bcbf8d73

View file

@ -344,7 +344,7 @@ M.commands = {
-- @param lang: the language of the buffer (string)
-- @param bufnr: the bufnr (number)
function M.is_enabled(mod, lang, bufnr)
if not parsers.list[lang] or not parsers.has_parser(lang) then
if not parsers.has_parser(lang) then
return false
end