forked from VimPlug/emmet-vim
add support for typescript
This commit is contained in:
@@ -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',
|
||||
\ },
|
||||
|
||||
Reference in New Issue
Block a user