My .nvim folder with every plugin I use and my own annotated init.vim file
- neovim >=0.5
- GNU make
- nodejs (Optional but highly recommended, for javascript/typescript support, typescript, and prettier)
- Clone this repo anywhere (I use it as a submodule in my init-environment repo, for instance).
- Use GNU make:
$ make installOnce the configuration is in place:
Install all plugins via vim-plug:
nvim --headless +PlugInstall +qallThis will pull down all plugins declared in init.vim. You can also do it manually from within nvim:
:PlugInstallCoC (Conquer of Completion)
CoC is the Language Server Protocol (LSP) integration for Neovim. It's what powers things like autocomplete, go-to-definition, etc.
Recommended CoC Extensions :
Install them with:
nvim --headless +CocInstall\ coc-tsserver coc-prettier coc-json coc-html coc-css +qallOr from inside nvim:
:CocInstall coc-tsserver coc-prettier coc-json coc-html coc-cssSome popular extensions:
| Extension | Description |
|---|---|
| coc-tsserver | TypeScript and JavaScript support |
| coc-prettier | Format code with Prettier |
| coc-json | JSON autocomplete and linting |
| coc-html | HTML support |
| coc-css | CSS support |
Tip: You can list installed extensions with
:CocList extensions- For Typescript, install typescript globally (
npm install -g typescript) so that Coc can use it. You can also rely on a locally installed (project based) typescript but to benefit from all the tsserver API I find it better to consistently use a global one. - For Prettier automatic formatting, install prettier globally (
npm install -g prettier) - Don't forget to review the init.vim file ! I took some time to comment why I added stuff here and there's a lot of little things so feel free to own the file. That's what Vim is about after all: owning your editor :)
- Remember that
:helpis your friend. If you don't understand a setting, or a command, just:helpit !
Enjoy !
All the vim community that helped a late vimer like me take over one of the most powerful — albeit challenging — text editor.
Special mentions: