Skip to content

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMEllon committed Dec 12, 2016
1 parent 18cef39 commit d69f799
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,27 @@ your `~/.vimrc`:
Plug 'maxmellon/vim-jsx-pretty'
```
- with: yajs.vim
- with: yajs.vim (If you use neovim, doesn't work.)
```vim
Plug 'othree/yajs.vim'
Plug 'maxmellon/vim-jsx-pretty'
```
execute command in vim:
If you want to use `yajs.vim`, you have to manually install indent config.
Because, `yajs.vim` not include indent config.
```bash
$ mkdir -p ~/.vim/after/indent # if you use `nvim`, then ~/.config/nvim/after/indent
$ wget https://github.com/pangloss/vim-javascript/blob/master/indent/javascript.vim -O ~/.vim/after/indent/javascript.vim
```

- Execute command in vim:

```vim
:so ~/.vimrc
:PlugInstall
```
Configuration
---
Expand All @@ -59,7 +69,7 @@ Configuration
If you set `g:vim_jsx_pretty_enable_jsx_highlight`, Disable jsx highlight.
But highlight group is setten to jsx syntax. So you should set manual
But highlight group is set to jsx syntax. So you should set manual
highlight setting.
```vim
Expand Down
2 changes: 1 addition & 1 deletion doc/vim-jsx-pretty-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CONFIG *vim-jsx-pretty-config*
- *g:vim_jsx_pretty_enable_jsx_highlight*

If you set 'g:vim_jsx_pretty_enable_jsx_highlight', Disable jsx highlight.
But highlight group is setten to jsx syntax. So you should set manual
But highlight group is set to jsx syntax. So you should set manual
highlight setting.

- Example: >
Expand Down

0 comments on commit d69f799

Please sign in to comment.