aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-18 22:52:00 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-10-19 10:32:30 +0200
commitb9bcbf8d73b5a6c3e04922936b5fc500b436d4f5 (patch)
tree4cd53902abf4bc65c4073b3ed6788a557f62a23d
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar.gz
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar.bz2
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar.lz
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar.xz
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.tar.zst
nvim-treesitter-b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5.zip
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.
-rw-r--r--lua/nvim-treesitter/configs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua
index 04099d32a..87bb8d1a1 100644
--- a/lua/nvim-treesitter/configs.lua
+++ b/lua/nvim-treesitter/configs.lua
@@ -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