From d2174f1d29086b51124d084f9402c5f9731f21bd Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 20 Nov 2021 22:34:11 +0100
Subject: Fix docs
---
lua/nvim-treesitter/configs.lua | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'lua')
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua
index 3da54fd7e..cb0b8b5a8 100644
--- a/lua/nvim-treesitter/configs.lua
+++ b/lua/nvim-treesitter/configs.lua
@@ -352,11 +352,11 @@ function M.is_enabled(mod, lang, bufnr)
end
local disable = module_config.disable
- if type(disable) == 'function' then
+ if type(disable) == "function" then
if disable(lang, bufnr) then
return false
end
- elseif type(disable) == 'table' then
+ elseif type(disable) == "table" then
-- Otherwise it's a list of languages
for _, parser in pairs(disable) do
if lang == parser then
@@ -365,7 +365,6 @@ function M.is_enabled(mod, lang, bufnr)
end
end
-
return true
end
--
cgit v1.2.3-70-g09d2