Support typescript in jsformatter

This commit is contained in:
Gianni Chiappetta 2018-04-02 11:29:18 -04:00
parent 2ba64a88fd
commit 023fe122c5
No known key found for this signature in database
GPG Key ID: 644D5709D53E39CE
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ function! airline#extensions#tabline#formatters#jsformatter#format(bufnr, buffer
let buf = bufname(a:bufnr)
let filename = fnamemodify(buf, ':t')
if filename == 'index.js' || filename == 'index.jsx'
if filename == 'index.js' || filename == 'index.jsx' || filename == 'index.ts' || filename == 'index.tsx'
return fnamemodify(buf, ':p:h:t') . '/i'
else
return airline#extensions#tabline#formatters#unique_tail_improved#format(a:bufnr, a:buffers)