From 00b79b593af52585809e341c8dd1b7d839b3c466 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Fri, 26 Mar 2021 16:06:21 +0100 Subject: [PATCH] including typescript.tsx and javascript.jsx filetypes (#12) --- lua/nvim-ts-autotag/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 2f2b236..78ea3ec 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -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()