File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5262Configuration
5363---
@@ -59,7 +69,7 @@ Configuration
5969
6070
6171If 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
6373highlight setting.
6474
6575```vim
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ CONFIG *vim-jsx-pretty-config*
4848- *g:vim_jsx_pretty_enable_jsx_highlight*
4949
5050If 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
5252highlight setting.
5353
5454 - Example: >
You can’t perform that action at this time.
0 commit comments