{"id":14981991,"url":"https://github.com/peitalin/vim-jsx-typescript","last_synced_at":"2025-04-07T17:12:42.386Z","repository":{"id":44346394,"uuid":"82136196","full_name":"peitalin/vim-jsx-typescript","owner":"peitalin","description":"React JSX syntax highlighting for vim and Typescript","archived":false,"fork":false,"pushed_at":"2021-01-26T19:11:45.000Z","size":7618,"stargazers_count":308,"open_issues_count":14,"forks_count":29,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T15:19:45.790Z","etag":null,"topics":["jsx","tsx","typescript","typescript-vim","vim","vim-jsx","vim-tsx"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peitalin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-16T03:46:02.000Z","updated_at":"2025-03-16T19:47:31.000Z","dependencies_parsed_at":"2022-09-22T13:31:08.114Z","dependency_job_id":null,"html_url":"https://github.com/peitalin/vim-jsx-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peitalin%2Fvim-jsx-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peitalin%2Fvim-jsx-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peitalin%2Fvim-jsx-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peitalin%2Fvim-jsx-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peitalin","download_url":"https://codeload.github.com/peitalin/vim-jsx-typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694877,"owners_count":20980733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jsx","tsx","typescript","typescript-vim","vim","vim-jsx","vim-tsx"],"created_at":"2024-09-24T14:04:37.121Z","updated_at":"2025-04-07T17:12:42.346Z","avatar_url":"https://github.com/peitalin.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-jsx-typescript\n\nSyntax highlighting and indentation for JSX in Typescript (`typescriptreact` filetypes).\n\n`vim-jsx-typescript` works with the built-in typescript syntax highlighter and indentation engine for recent versions of Vim/Neovim.\n\n**Changelog: filetypes were updated from typescript.tsx to typescriptreact**\n**Please set filetypes as typescriptreact, not typescript.tsx as in prior versions in your .vimrc if you have any issues**\n```\n\" set filetypes as typescriptreact\nautocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact\n```\n\n![alt tag](./screen1.jpg)\n![alt tag](./screen2.jpg)\n\n## Installation\n\nYou need to install [Vundle] or [vim-plug]: `https://github.com/junegunn/vim-plug` --- just add the following lines to your `~/.vimrc`:\n\n### Vundle:\n\n```\nPlugin 'leafgarland/typescript-vim'\nPlugin 'peitalin/vim-jsx-typescript'\n```\n\n### Vim-plug:\n\n```\nPlug 'leafgarland/typescript-vim'\nPlug 'peitalin/vim-jsx-typescript'\n```\n\nTo install from within vim, use the commands below.\n\n```\n:so ~/.vimrc\n:PluginInstall\n\n\" OR for vim-plug:\n:so ~/.vimrc\n:PlugInstall\n\n```\n\nNote you can include .jsx files as typescriptreact files for syntax highlighting.\n\n```\n\" set filetypes as typescriptreact\nautocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact\n```\n\nSet jsx-tag colors in vimrc, for example:\n\n```\n\" dark red\nhi tsxTagName guifg=#E06C75\nhi tsxComponentName guifg=#E06C75\nhi tsxCloseComponentName guifg=#E06C75\n\n\" orange\nhi tsxCloseString guifg=#F99575\nhi tsxCloseTag guifg=#F99575\nhi tsxCloseTagName guifg=#F99575\nhi tsxAttributeBraces guifg=#F99575\nhi tsxEqual guifg=#F99575\n\n\" yellow\nhi tsxAttrib guifg=#F8BD7F cterm=italic\n```\n\n![alt tag](./screen4.jpg)\n\nThere is support for JSX Generics (Typescript 2.9). You can set the colors by adding this to your .vimrc settings\n\n```\n\" light-grey\nhi tsxTypeBraces guifg=#999999\n\" dark-grey\nhi tsxTypes guifg=#666666\n\n```\n\n![alt tag](./screen5.jpg)\n![alt tag](./screen9.jpg)\n\nOther keywords you can change coloring:\n\n```\nhi ReactState guifg=#C176A7\nhi ReactProps guifg=#D19A66\nhi ApolloGraphQL guifg=#CB886B\nhi Events ctermfg=204 guifg=#56B6C2\nhi ReduxKeywords ctermfg=204 guifg=#C678DD\nhi ReduxHooksKeywords ctermfg=204 guifg=#C176A7\nhi WebBrowser ctermfg=204 guifg=#56B6C2\nhi ReactLifeCycleMethods ctermfg=204 guifg=#D19A66\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeitalin%2Fvim-jsx-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeitalin%2Fvim-jsx-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeitalin%2Fvim-jsx-typescript/lists"}