Skip to content
프로젝트

소개

Syntax and indent plugin for React jsx.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

vim-jsx-improve

Makes your javascript files support React jsx correctly.

Javascript syntax from pangloss/vim-javascript

Jsx highlight and indent code changed from MaxMEllon/vim-jsx-pretty

  • Fixed syntax highlighting and indentation for React jsx files.
  • Works well with xml.vim

This plugin have no dependency, all the code you need for jsx and javascript is included.

Note: you need to disable vim-javascript plugin if have installed, I have to change some highlight group to make it works with jsx.

Installation

Use pathogen or vundle is recommended. Vundle:

Plugin 'neoclide/vim-jsx-improve'

This plugin support javascriptreact filetype which is introduced on newer version of vim8 and neovim.

Use let g:jsx_improve_javascriptreact = 0 to disable javascriptreact support.

Quick jump to function braces

You can use [[ ]] [] ][ to quick jump to { } position of functions, set g:jsx_improve_motion_disable to 1 to disable it.

New Syntax group

this is a new syntax group .if you want highlight it ,your colorscheme should add jsxEndComponentName color.

name place
jsxEndComponentName </Capitals>
__~~~~~~~~_

GIF

2016-12-10 01_27_59

The colorscheme is gruvbox

The keystroke visualizer is keycastr

Feed back welcome

Feel free to open a ticket if your have problem with this plugin.

관련 프로젝트 살펴보기

불러오는 중…