Skip to content

Remove *.tsx detection as discussed in issue #110 #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

kballenegger
Copy link
Contributor

No description provided.

@leafgarland
Copy link
Owner

leafgarland commented Mar 14, 2017

I had a play - we can use something like this to avoid overwriting ianks/vim-tsx while still giving the basic typescript experience to .tsx files.

autocmd BufNewFile,BufRead *.ts  set filetype=typescript
autocmd BufNewFile,BufRead *.tsx setfiletype typescript

(updated to use setfiletype)

leafgarland added a commit that referenced this pull request Mar 15, 2017
There are other plugins (like ianks/vim-tsx) that set their own filetype for
*.tsx files and we don't want to override them. Using `setfiletype` does that
by only setting the filetype if it has not already been set.

For *.ts files we continue to use `set filetype` as that will overwrite the
default for *.ts files.

fix #110
close #111
@leafgarland leafgarland merged commit 236d433 into leafgarland:master Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants