Packer config for neovim users

Mike Kot
2023-03-18 15:01:13 +03:00
parent 428e90df47
commit 1e322dde5e

@@ -22,6 +22,12 @@ First of all let's start with basics. Pick your favorite plugin manager: [Pathog
Then add the line `autocmd vimenter * ++nested colorscheme gruvbox` to your .vimrc file, and restart vim. If you are using a plugin manager like Vundle, make sure this setting is after the plugin initialization section. Then add the line `autocmd vimenter * ++nested colorscheme gruvbox` to your .vimrc file, and restart vim. If you are using a plugin manager like Vundle, make sure this setting is after the plugin initialization section.
[the reason we are using autocmd is that, vim always read .vimrc file first and after that starts to load plugins, so in this case, we use autocmd vimenter, to be sure that all plugins are loaded completely and then use gruvbox] [the reason we are using autocmd is that, vim always read .vimrc file first and after that starts to load plugins, so in this case, we use autocmd vimenter, to be sure that all plugins are loaded completely and then use gruvbox]
If you're using [Packer](https://github.com/wbthomason/packer.nvim), you can just put a single line
```lua
use {'morhetz/gruvbox', config = function() vim.cmd.colorscheme("gruvbox") end }
```
If you're using GUI version of vim that should be enough. Otherwise let me guide you through the hell of [terminal specific issues](https://github.com/morhetz/gruvbox/wiki/Terminal-specific). If you're using GUI version of vim that should be enough. Otherwise let me guide you through the hell of [terminal specific issues](https://github.com/morhetz/gruvbox/wiki/Terminal-specific).
Refer [Usage page](https://github.com/morhetz/gruvbox/wiki/Usage) on dark and light themes switching and cursor inversions. Refer [Usage page](https://github.com/morhetz/gruvbox/wiki/Usage) on dark and light themes switching and cursor inversions.