Update lua/nvim-ts-autotag/utils.lua

Co-authored-by: Price Hiller <price@orion-technologies.io>
This commit is contained in:
roycrippen4 2024-07-14 17:35:03 -04:00 committed by GitHub
parent cbe184f12d
commit 2553ac5520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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