mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 10:44:24 +08:00
add support for typescript
This commit is contained in:
@@ -391,6 +391,10 @@ function! emmet#getFileType(...) abort
|
|||||||
let type = 'jsx'
|
let type = 'jsx'
|
||||||
elseif type =~? '^js\w' || type =~? '^javascript'
|
elseif type =~? '^js\w' || type =~? '^javascript'
|
||||||
let type = 'javascript'
|
let type = 'javascript'
|
||||||
|
elseif type =~? '^tsx'
|
||||||
|
let type = 'tsx'
|
||||||
|
elseif type =~? '^ts\w' || type =~? '^typescript'
|
||||||
|
let type = 'typescript'
|
||||||
elseif type =~? '^xml'
|
elseif type =~? '^xml'
|
||||||
let type = 'xml'
|
let type = 'xml'
|
||||||
else
|
else
|
||||||
@@ -1987,6 +1991,9 @@ let s:emmet_settings = {
|
|||||||
\ 'attribute_name': {'class': 'className', 'for': 'htmlFor'},
|
\ 'attribute_name': {'class': 'className', 'for': 'htmlFor'},
|
||||||
\ 'empty_element_suffix': ' />',
|
\ 'empty_element_suffix': ' />',
|
||||||
\ },
|
\ },
|
||||||
|
\ 'tsx': {
|
||||||
|
\ 'extends': 'jsx',
|
||||||
|
\ },
|
||||||
\ 'xslt': {
|
\ 'xslt': {
|
||||||
\ 'extends': 'xsl',
|
\ 'extends': 'xsl',
|
||||||
\ },
|
\ },
|
||||||
|
|||||||
Reference in New Issue
Block a user