From 2553ac552069736910dfd2a87ebb4ff2150c6549 Mon Sep 17 00:00:00 2001 From: roycrippen4 <54562558+roycrippen4@users.noreply.github.com> Date: Sun, 14 Jul 2024 17:35:03 -0400 Subject: [PATCH] Update lua/nvim-ts-autotag/utils.lua Co-authored-by: Price Hiller --- lua/nvim-ts-autotag/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/nvim-ts-autotag/utils.lua b/lua/nvim-ts-autotag/utils.lua index b2c03f8..0fdd0b7 100644 --- a/lua/nvim-ts-autotag/utils.lua +++ b/lua/nvim-ts-autotag/utils.lua @@ -11,7 +11,8 @@ function M.is_react_file() elseif ft ~= "javascript" then return false end - +-- If we are in a `javascript` file, then check the content to see if the +-- current file counts as a react file local ok, buf_parser = pcall(vim.treesitter.get_parser) if not ok then return false