mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 02:16:12 +08:00
Merge pull request #1704 from gf3/jsformatter-typescript
Support typescript in jsformatter
This commit is contained in:
commit
2876715b56
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user