From 79b2a48448aab945bda7755787919b567212d454 Mon Sep 17 00:00:00 2001 From: Luckas Date: Wed, 31 Jul 2024 17:03:08 +0300 Subject: [PATCH] fix: parsing in nightly (#28) Closes #28. --- lua/tailwind-tools/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tailwind-tools/treesitter.lua b/lua/tailwind-tools/treesitter.lua index a4532be..d5c1a7b 100644 --- a/lua/tailwind-tools/treesitter.lua +++ b/lua/tailwind-tools/treesitter.lua @@ -32,7 +32,7 @@ M.get_class_nodes = function(bufnr, all) if not parser then return log.warn("No parser available for " .. ft) end - if all and vim.version().minor == 10 then parser:parse(true) end + if all and vim.version().minor >= 10 then parser:parse(true) end parser:for_each_tree(function(tree, lang_tree) local root = tree:root()