Skip to content

Commit d69f799

Browse files
committed
📝
1 parent 18cef39 commit d69f799

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,27 @@ your `~/.vimrc`:
3737
Plug 'maxmellon/vim-jsx-pretty'
3838
```
3939
40-
- with: yajs.vim
40+
- with: yajs.vim (If you use neovim, doesn't work.)
4141
4242
```vim
4343
Plug 'othree/yajs.vim'
4444
Plug 'maxmellon/vim-jsx-pretty'
4545
```
4646
47-
execute command in vim:
47+
If you want to use `yajs.vim`, you have to manually install indent config.
48+
Because, `yajs.vim` not include indent config.
4849
50+
```bash
51+
$ mkdir -p ~/.vim/after/indent # if you use `nvim`, then ~/.config/nvim/after/indent
52+
$ wget https://github.com/pangloss/vim-javascript/blob/master/indent/javascript.vim -O ~/.vim/after/indent/javascript.vim
53+
```
54+
55+
- Execute command in vim:
56+
57+
```vim
4958
:so ~/.vimrc
5059
:PlugInstall
60+
```
5161
5262
Configuration
5363
---
@@ -59,7 +69,7 @@ Configuration
5969
6070
6171
If you set `g:vim_jsx_pretty_enable_jsx_highlight`, Disable jsx highlight.
62-
But highlight group is setten to jsx syntax. So you should set manual
72+
But highlight group is set to jsx syntax. So you should set manual
6373
highlight setting.
6474
6575
```vim

doc/vim-jsx-pretty-doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ CONFIG *vim-jsx-pretty-config*
4848
- *g:vim_jsx_pretty_enable_jsx_highlight*
4949

5050
If you set 'g:vim_jsx_pretty_enable_jsx_highlight', Disable jsx highlight.
51-
But highlight group is setten to jsx syntax. So you should set manual
51+
But highlight group is set to jsx syntax. So you should set manual
5252
highlight setting.
5353

5454
- Example: >

0 commit comments

Comments
 (0)