mirror of
https://github.com/windwp/nvim-ts-autotag.git
synced 2024-12-28 21:19:16 -06:00
Update lua/nvim-ts-autotag/utils.lua
Co-authored-by: Price Hiller <price@orion-technologies.io>
This commit is contained in:
parent
cbe184f12d
commit
2553ac5520
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user