including typescript.tsx and javascript.jsx filetypes (#12)

This commit is contained in:
Francisco Silva 2021-03-26 16:06:21 +01:00 committed by GitHub
parent caa6d0be04
commit 00b79b593a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ M.is_supported = function (lang)
end
local function is_jsx()
return is_in_table({'typescriptreact', 'javascriptreact', 'javascript', 'typescript'}, vim.bo.filetype)
return is_in_table({'typescriptreact', 'javascriptreact', 'javascript.jsx', 'typescript.tsx', 'javascript', 'typescript'}, vim.bo.filetype)
end
local function get_ts_tag()