Add auto import and formatting recommendation for coc.nvim

Tyler Compton 2019-06-17 20:56:33 -07:00
parent c63b5b097a
commit 030daa5355

@ -146,6 +146,12 @@ Use [coc.nvim](https://github.com/neoclide/coc.nvim/), with the following `coc-s
}
```
To get automatic formatting and imports on save, add the following line to your `init.vim`:
```vim
autocmd BufWritePre *.go :call CocAction("format")
```
---
#### Vim (classic only)