diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 3ba1154..37f3f97 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -391,6 +391,10 @@ function! emmet#getFileType(...) abort let type = 'jsx' elseif type =~? '^js\w' || type =~? '^javascript' let type = 'javascript' + elseif type =~? '^tsx' + let type = 'tsx' + elseif type =~? '^ts\w' || type =~? '^typescript' + let type = 'typescript' elseif type =~? '^xml' let type = 'xml' else @@ -1987,6 +1991,9 @@ let s:emmet_settings = { \ 'attribute_name': {'class': 'className', 'for': 'htmlFor'}, \ 'empty_element_suffix': ' />', \ }, +\ 'tsx': { +\ 'extends': 'jsx', +\ }, \ 'xslt': { \ 'extends': 'xsl', \ },