mirror of
https://github.com/jelera/vim-javascript-syntax.git
synced 2026-01-24 03:52:07 +08:00
Update README
This commit is contained in:
@@ -32,11 +32,11 @@ This is with the Enhanced Syntax file
|
|||||||
This is with the Enhanced Syntax file
|
This is with the Enhanced Syntax file
|
||||||

|

|
||||||
### Installation
|
### Installation
|
||||||
- Using [NeoBundle](https://github.com/Shougo/neobundle.vim) **(Which I recommend)**,
|
- Using [Vim-Plug](https://github.com/junegunn/vim-plug) **(Which I recommend)**,
|
||||||
add this line to your `.vimrc`
|
add this line to your `.vimrc`
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}
|
Plug 'jelera/vim-javascript-syntax'
|
||||||
```
|
```
|
||||||
|
|
||||||
- Using [Vundle](https://github.com/gmarik/vundle),
|
- Using [Vundle](https://github.com/gmarik/vundle),
|
||||||
@@ -54,9 +54,14 @@ git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Suggested Companion Plugins
|
### Suggested Companion Plugins
|
||||||
- **Indentation**, can be achieved with [Javascript-Indent](https://github.com/vim-scripts/JavaScript-Indent) by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML.
|
- **Indentation**
|
||||||
The project is unmaintained for now, but you could fork it and improve upon it.
|
The recommended way is to use [Prettier](https://prettier.io/docs/en/vim.html) and [ALE](https://github.com/dense-analysis/ale).
|
||||||
- **Autocompletion** by [Tern for Vim](https://github.com/marijnh/tern_for_vim)
|
|
||||||
|
~~It can be achieved with [Javascript-Indent](https://github.com/vim-scripts/JavaScript-Indent) by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML.
|
||||||
|
The project is unmaintained for now, but you could fork it and improve upon it.~~
|
||||||
|
- **Autocompletion**
|
||||||
|
- [Coc.vim](https://github.com/neoclide/coc.nvim), as it supports **Language Server Protocol** as VSCode.
|
||||||
|
- [Tern for Vim](https://github.com/marijnh/tern_for_vim)
|
||||||
- Popular **third-party libraries support** like jQuery, YUI, Prototype, by [javascript-libraries-syntax](https://github.com/othree/javascript-libraries-syntax.vim)
|
- Popular **third-party libraries support** like jQuery, YUI, Prototype, by [javascript-libraries-syntax](https://github.com/othree/javascript-libraries-syntax.vim)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user