mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
e06da64459
commit
b9bcbf8d73
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue